-
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
[ALCA] Remove Wall flag from Alignment/OfflineValidation/bin/BuildFile.xml #45169
Conversation
…e.xml This flag overrides `-Wno-vla-cxx-extension` flag in [llvm-cxxcompiler](https://github.com/cms-sw/cmsdist/blob/IB/CMSSW_14_1_X/clang/scram-tools.file/tools/llvm/llvm-cxxcompiler.xml#L34) and makes Clang emit [warnings](https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/el8_amd64_gcc12/CMSSW_14_1_CLANG_X_2024-06-06-2300/Alignment/OfflineValidation) about variable-length array (a nonstandard C++ extension), e.g.: ``` In file included from src/Alignment/OfflineValidation/bin/MTSmerge.cc:20: src/Alignment/OfflineValidation/macros/trackSplitPlot.C:59:17: warning: variable length arrays in C++ are a Clang extension [-Wvla-cxx-extension] 59 | Int_t lengths[n]; | ^ src/Alignment/OfflineValidation/macros/trackSplitPlot.C:59:17: note: initializer of 'n' is not a constant expression src/Alignment/OfflineValidation/macros/trackSplitPlot.C:56:15: note: declared here 56 | const Int_t n = nFiles; | ^ src/Alignment/OfflineValidation/macros/trackSplitPlot.C:758:13: warning: variable length arrays in C++ are a Clang extension [-Wvla-cxx-extension] 758 | bool used[n]; | ^ src/Alignment/OfflineValidation/macros/trackSplitPlot.C:758:13: note: initializer of 'n' is not a constant expression src/Alignment/OfflineValidation/macros/trackSplitPlot.C:747:13: note: declared here 747 | const int n = nFiles; | ^ 2 warnings generated. ```
please test for CMSSW_14_1_CLANG_X |
cms-bot internal usage |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45169/40517
|
A new Pull Request was created by @iarspider for master. It involves the following packages:
@saumyaphor4252, @perrotta, @consuegs can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3957ff/39771/summary.html Comparison SummarySummary:
|
@cmsbuild, please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3957ff/39797/summary.html Comparison SummarySummary:
|
Quite technical PR which apparently makes clang happy without significantly affecting the Alignment/OfflineValidation package |
@perrotta , scram already pass |
+alca |
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, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
The
-Wall
flag overrides-Wno-vla-cxx-extension
flag defined in in llvm-cxxcompiler and makes Clang emit warnings about variable-length array (a nonstandard C++ extension), e.g.:PR validation:
Bot tests