Skip to content
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

Misc errors and warnings cleanup in DQMOffline/Trigger #6377

Merged

Conversation

davidlt
Copy link
Contributor

@davidlt davidlt commented Nov 13, 2014

The following patchset cleanups all Clang reported errors and majority of reported warnings. Warnings from RooFit were fixed today for future 5.34.XX patch releases.

This is needed to compile with Clang.

Please, review.

David Abdurachmanov added 7 commits November 13, 2014 15:16
The path resolves the following errors:

    error: address of 'this->triggerResults_' will always evaluate to
    'true' [-Werror,-Wpointer-bool-conversion]

Taking an address of `triggerResults_` and implicitly converting to bool
will always yield true.

I believe author wanted `triggerResults_.isValid()`.

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
`HLTTauDQMOfflineObjects` is declared as a struct in
`DQMOffline/Trigger/interface/HLTTauDQMPath.h`.

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
The patch resolves all -Wunused-private-field generated warnings:

    private field '???' is not used [-Wunused-private-field]

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
The patch corrects struct forwarding. `CutMasks` and `BinData` are
structs, not classes.

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
Based on `DQMStore` Doxygen documentation, `Nmin_` and `Nmax_` must be
double. Otherwise the numbers are changed by implicit `double` to `int`
conversion.

    JetMETHLTOfflineSource.cc:1593:27: warning: implicit conversion from
    'double' to 'int' changes value from 0.5 to 0 [-Wliteral-conversion]
    JetMETHLTOfflineSource.cc:1594:26: warning: implicit conversion from
    'double' to 'int' changes value from 9.5 to 9 [-Wliteral-conversion]

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
@cmsbuild
Copy link
Contributor

A new Pull Request was created by @davidlt for CMSSW_7_3_X.

Misc errors and warnings cleanup in DQMOffline/Trigger

It involves the following packages:

DQMOffline/Trigger

@nclopezo, @danduggan, @rovere, @cmsbuild, @deguio, @ojeda can you please review it and eventually sign? Thanks.
@rociovilar, @abbiendi, @trocino, @battibass this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
@nclopezo you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@deguio
Copy link
Contributor

deguio commented Nov 13, 2014

+1
looks ok. thanks @davidlt
F.

@cmsbuild
Copy link
Contributor

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.

cmsbuild added a commit that referenced this pull request Nov 13, 2014
…ne-Trigger

Misc errors and warnings cleanup in DQMOffline/Trigger
@cmsbuild cmsbuild merged commit 25a1027 into cms-sw:CMSSW_7_3_X Nov 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants