-
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
[CORE] [CLANG] Fix warnings reported by llvm16 in CLANG IBs #41522
Conversation
smuzaffar
commented
May 4, 2023
- Fixed set but unused warnings from clang-16 in CLANG IBs.
- Added couple of cout sothat compiler do not complain about set but unused variables.
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-41522/35394
|
A new Pull Request was created by @smuzaffar (Malik Shahzad Muzaffar) for master. It involves the following packages:
@cmsbuild, @smuzaffar, @Dr15Jones, @makortel can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@@ -67,6 +68,7 @@ void testOneToManyAssociation::dummy() { | |||
++f; | |||
n = v.numberOfAssociations(edm::Ref<CKey>()); | |||
++n; | |||
std::cout << "numberOfAssociations:" << n << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly this test code does not use particularly useful. Ok, it ensures the syntax compiles and the whatever the compiler leaves there after optimizations runs, but it could use more assertions. Something to be possibly improved later though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@makortel , I am not sure if unit test is testing this code, I do not see this printout in the log file https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-07754a/32373/unitTests/src/DataFormats/Common/test/testDataFormatsCommon/testing.log
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah ok, this code is there to check if it compiles
@cmsbuild, please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-07754a/32373/summary.html Comparison SummarySummary:
|
Another occurrence of #35109 |
+core |
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. @perrotta, @dpiparo, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
+1 |