-
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
[GCC11] Fix warning "strncmp ... evaluates to nonzero" #36467
Conversation
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36467/27321
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36467/27322
|
A new Pull Request was created by @iarspider 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 |
assign core |
please test |
But cmssw/FWCore/Utilities/src/MallocOpts.cc Line 39 in c6bb272
and, IIUC, line 97 cmssw/FWCore/Utilities/src/MallocOpts.cc Line 97 in c6bb272
truncates the str to 12 characters.
I think the warning for ARM and Power come from the cmssw/FWCore/Utilities/src/MallocOpts.cc Lines 85 to 89 in c6bb272
that the compiler is now able to figure out at compile time that "Unknown" is not equal to "AuthenticAMD" or "GenuineIntel" .
I'd think a better "hotfix" would be to just |
@makortel good catch. Updated the code. I left this part in case there is an x86/x64 CPU that is not AMD or Intel: |
Sorry, I realized I was confusing. With "this code" I meant |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36467/27333
|
Pull request #36467 was updated. @cmsbuild, @smuzaffar, @Dr15Jones, @makortel can you please check and sign again. |
@cmsbuild, please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-bd3489/21220/summary.html 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: CMS deprecated warnings: 39 CMS deprecated warnings found, see summary page for details. Comparison SummarySummary:
|
+1 |
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, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
Log : https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/slc7_aarch64_gcc11/CMSSW_12_3_X_2021-12-10-2300/FWCore/Utilities
Warning message:
PR description:
We do not need to compare all 12 characters, since the detected CPU name is truncated to 2 characters (see line 97).