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
Fixing gcc491 compilation #5676
Fixing gcc491 compilation #5676
Conversation
A new Pull Request was created by @rappoccio for CMSSW_7_3_X. Fixing gcc491 compilation It involves the following packages: CommonTools/RecoAlgos @cmsbuild, @nclopezo, @StoyanStoynev, @slava77 can you please review it and eventually sign? Thanks. |
@cmsbuild test |
@rappoccio I am just wondering why "static_cast(matched_index)" is preferred to "(unsigned int) matched_index" in this case. |
Because it's C++ and |
+1 |
It probably should be |
I very strongly agree with David. We should avoid C style casts in CMSSW. |
why is this one still open and not merged? |
did we address the comments of David/Chris? On Oct 7, 2014, at 11:57 AM, Slava Krutelyov notifications@github.com
|
The comment from David/Chris was essentially just confirming that the fix here is done correctly (using c++ cast). So, no action was needed. |
... except that size_t was not applied |
@slava77 I would like to get |
Sal, could you please make a change (possibly a separate branch) David, |
@slava77 UBSan can detect this kind of issues, but only the one already happening. Clang Static Analyzer maybe could do so, also maybe some compiler flags. I don't know concrete answer. |
OK I just pushed another change to this branch to make it a "size_t", but I don't see it registering because this is closed. I will make another PR. |
New PR #5728 |
Fixing signed to unsigned comparison error for gcc 4.9.1.