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 for gcc9 warning in HLTrigger/JSONMonitoring #28274
Fix for gcc9 warning in HLTrigger/JSONMonitoring #28274
Conversation
please test |
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-28274/12447
|
The tests are being triggered in jenkins. |
A new Pull Request was created by @mrodozov (Mircho Rodozov) for master. It involves the following packages: HLTrigger/JSONMonitoring @Martin-Grunewald, @cmsbuild, @fwyzard can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@@ -41,7 +41,7 @@ struct L1TriggerJSONMonitoringData { | |||
std::vector<unsigned int> l1tAcceptCalibration; // number of "calibration" events accepted by each L1 trigger | |||
std::vector<unsigned int> l1tAcceptRandom; // number of "random" events accepted by each L1 trigger | |||
std::vector<unsigned int> tcdsAccept; // number of "physics", "calibration", "random" and other event types | |||
int prescaleIndex; // prescale column index | |||
int prescaleIndex = {}; // prescale column index |
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.
This is supposed to be uninitialised here, since it is initialised before its first use.
If there is any suspicion that it is used uninitialised, then it should be initialised to kPrescaleUndefined
, not 0
.
Then, it would make sense to initialise also:
stream.processed = 0;
lumisection.prescaleIndex = kPrescaleUndefined;
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.
kPrescaleUndefined was not defined in that scope (which I blindly tried and now it doesn't compile). would you suggest the change please, I'll commit it :/
The code-checks are being triggered in jenkins. |
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-28274/12453
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
Comparison job queued. |
Comparison is ready Comparison Summary:
|
The code-checks are being triggered in jenkins. |
please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-28274/12538
|
The tests are being triggered in jenkins. |
Pull request #28274 was updated. @Martin-Grunewald, @cmsbuild, @fwyzard can you please check and sign again. |
Comparison job queued. |
thanks for the changes ! |
Comparison is ready Comparison Summary:
|
@Martin-Grunewald is this fix ok to be integrated? |
+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. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
Fixes
https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/slc7_amd64_gcc900/CMSSW_11_0_X_2019-10-24-2300/HLTrigger/JSONMonitoring
PR validation:
Compile without warning