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
Clean up DQM/HLTEvF based on Clang warnings/errors #6359
Conversation
Clang 3.5.0 complains regarding unused variable: DQM/HLTEvF/plugins/TriggerRatesMonitor.cc:44:21: error: unused variable 'SECS_PER_LUMI' [-Werror,-Wunused-const-variable] The patch removes it. Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
A vast number of warnings in `DQM/HLTEvF` are private field '???' is not used [-Wunused-private-field] It looks like a mistake of copy & paste. The patch removes all such not needed private fields. Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
We have `std::vector<int>`, thus std::abs must be used from `<cstdlib>`. Otherwise it triggers unnecessary conversion to `double`. Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
A new Pull Request was created by @davidlt for CMSSW_7_3_X. Clean up DQM/HLTEvF based on Clang warnings/errors It involves the following packages: DQM/HLTEvF @nclopezo, @danduggan, @rovere, @cmsbuild, @deguio, @ojeda can you please review it and eventually sign? Thanks. |
+1 |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_3_X IBs unless changes (tests are also fine). This pull request will be automatically merged. |
Clean up DQM/HLTEvF based on Clang warnings/errors
According to Clang this package has 1 error and 84 warnings. The following patchset resolves the error and majority of warnings, only 2 warnings are left which are coming from a different package.
I have a feeling that most of problems are caused by copy & pasting the the code.