-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix improper use of std::unique and std::remove #47320
Conversation
please test |
cms-bot internal usage |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-47320/43646 |
A new Pull Request was created by @iarspider for master. It involves the following packages:
@Martin-Grunewald, @antoniovagnerini, @ftorrresd, @hqucms, @jfernan2, @mandrenguyen, @mmusich, @rseidita can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
+1 Size: This PR adds an extra 64KB to repository Comparison SummarySummary:
|
please test for el8_amd64_gcc14 |
-1 Failed Tests: Build HeaderConsistency The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
You can see more details here: BuildI found compilation error when building: >> Leaving Package RecoTBCalo/HcalTBTools >> Package RecoTBCalo/HcalTBTools built Copying tmp/el8_amd64_gcc14/src/RecoVertex/PixelVertexFinding/plugins/RecoPixelVertexingPixelVertexFindingPluginsPortableROCmAsync/libRecoPixelVertexingPixelVertexFindingPluginsPortableROCmAsync_rocm.a to productstore area: cp: cannot stat 'tmp/el8_amd64_gcc14/src/RecoVertex/PixelVertexFinding/plugins/RecoPixelVertexingPixelVertexFindingPluginsPortableROCmAsync/libRecoPixelVertexingPixelVertexFindingPluginsPortableROCmAsync_rocm.a': No such file or directory >> Deleted: tmp/el8_amd64_gcc14/src/RecoVertex/PixelVertexFinding/plugins/RecoPixelVertexingPixelVertexFindingPluginsPortableROCmAsync/libRecoPixelVertexingPixelVertexFindingPluginsPortableROCmAsync_rocm.a gmake: *** [config/SCRAM/GMake/Makefile.rules:1886: tmp/el8_amd64_gcc14/src/RecoVertex/PixelVertexFinding/plugins/RecoPixelVertexingPixelVertexFindingPluginsPortableROCmAsync/libRecoPixelVertexingPixelVertexFindingPluginsPortableROCmAsync_rocm.a] Error 1 >> Entering Package SimTransport/HectorProducer >> Leaving Package SimTransport/HectorProducer >> Package SimTransport/HectorProducer built Entering library rule at SimTransport/HectorProducer >> Compiling edm plugin src/SimTransport/HectorProducer/src/Hector.cc |
please test lets rerun the tests and this time bot should run the extra 12834.7 due to |
+1 Size: This PR adds an extra 16KB to repository Comparison SummarySummary:
|
+1 |
+1 |
+1 |
+dqm
|
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @sextonkennedy, @antoniovilela, @mandrenguyen, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
In GCC14 builds, a warning is emitted when discarding output value of function marked
nodiscard
, such asstd::unique
andstd::remove
. Since both of these functions take iterators, they are not modifying the length of the original sequence (std::vector
) - i.e. the removed elements are still accessible but their value is undefined. One must callerase(...)
to update the number of elements.The proposed changes cleanup most of the reported issues.
PR validation:
Bot tests