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
[CondFormats/SiPixelObjects] Solve warning found by gcc 5.3.0 #13577
Conversation
please test |
The tests are being triggered in jenkins. |
A new Pull Request was created by @Degano (Alessandro Degano) for CMSSW_8_1_X. It involves the following packages: CondFormats/SiPixelObjects @diguida, @cerminar, @cmsbuild, @franzoni, @ggovi, @mmusich, @davidlange6 can you please review it and eventually sign? Thanks. cms-bot commands are list here #13028 |
please test |
Wrong here. There is not (or I don't see) a point in converting |
@@ -53,7 +53,7 @@ int SiPixelFrameConverter::toCabling( | |||
for (IT it = path.begin(); it != path.end(); ++it) { | |||
const PixelROC * roc = theMap->findItem(*it); | |||
if (!roc) return 2; | |||
if (! roc->rawId() == detector.rawId) return 3; | |||
if ((! roc->rawId()) == detector.rawId) return 3; |
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.
agree with @davidlt
move ( after the ! and close it after the last )
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.
Vincenzo,
If you give me a day I can fix it.
I also do not know what the intention was but I think I can figure it out.
I could have it ready by Monday.
Or shall I wait that this pull request is done?
Danek
On 3 Mar 2016, at 14:31, Vincenzo Innocente notifications@github.com wrote:
In CondFormats/SiPixelObjects/src/SiPixelFrameConverter.cc:
@@ -53,7 +53,7 @@ int SiPixelFrameConverter::toCabling(
for (IT it = path.begin(); it != path.end(); ++it) {
const PixelROC * roc = theMap->findItem(*it);
if (!roc) return 2;
- if (! roc->rawId() == detector.rawId) return 3;
- if ((! roc->rawId()) == detector.rawId) return 3;
agree with @davidlt
move ( after the ! and close it after the last )�
Reply to this email directly or view it on GitHub.
then do not modify and leave the warning there |
@Degano correct, but these warnings are introduced in GCC for a reason and hiding them under the carpet is not a right way to deal with them. |
agree that https://github.com/degano/cmssw/commit/a73b83b9eaa0c3f398eace753f73ba6f82728d8f is the correct change (though it changes current behaviour). Lets test it. |
please test |
The tests are being triggered in jenkins. |
@ggovi ping |
Unfortunately I was not involved in the development of this code, besides that I'm not sure what is the question... |
Looks fine to me. Please proceed. |
+1 |
+1 |
This pull request is fully signed and it will be integrated in one of the next CMSSW_8_1_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @slava77, @davidlange6, @Degano, @smuzaffar |
https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/slc6_amd64_gcc530/CMSSW_8_1_X_2016-03-02-1100/CondFormats/SiPixelObjects
The behavior is unchanged, the parentheses makes clear the order of the logical operation while suppressing the warning.