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

Resolve Clang issues in DQMOffline/Trigger #7212

Merged
merged 3 commits into from Jan 16, 2015

Conversation

davidlt
Copy link
Contributor

@davidlt davidlt commented Jan 16, 2015

This is another round of fixes for DQMOffline/Trigger. Note that this package was already building fine under Clang at the end of November. Also fixing the package resulted in a bug report for Clang (details in commit and diff).

Build tested with GCC 4.9.1 and Clang pre-3.6 (65d8b4c) in DEVEL IB.

David Abdurachmanov added 3 commits January 16, 2015 10:58
The patch resolves the following error:

    error: address of 'this->m_triggerResults' will
    always evaluate to 'true'

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>
`ParameterSet` is not a templated class, but `getParameter<>()` method
is templated. If the method is called in a templated class via some
indirection (e.g., via array element):

    a[i].getParameter<int>("...")

`template` keyword is needed for Clang pre-3.6 (65d8b4c).

I believe this is wrong, but having `template` keyword should not harm
the code. It tell compiler that `getParameter<>()` name needs to be
looked up as a template.

See PR22247: http://llvm.org/bugs/show_bug.cgi?id=22247

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_4_X.

Resolve Clang issues in DQMOffline/Trigger

It involves the following packages:

DQMOffline/Trigger

@cmsbuild, @danduggan, @nclopezo, @deguio 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.
If you are a L2 or a release manager you can ask for tests by saying 'please test' in the first line of a comment.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@Dr15Jones
Copy link
Contributor

Thanks!

@deguio
Copy link
Contributor

deguio commented Jan 16, 2015

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_4_X IBs unless changes (tests are also fine). This pull request will be automatically merged.

cmsbuild added a commit that referenced this pull request Jan 16, 2015
Resolve Clang issues in DQMOffline/Trigger
@cmsbuild cmsbuild merged commit aa6da9f into cms-sw:CMSSW_7_4_X Jan 16, 2015
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

4 participants