-
Notifications
You must be signed in to change notification settings - Fork 99
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
gtest: add cast to remove sign-compare comparison warning #2433
Conversation
Resolve `error: comparison of integer expressions of different signedness: 'const long unsigned int' and 'const long int' [-Werror=sign-compare]` The warning is triggering -Werror in Trilinos nightly integration builds
Follow on to #2416 (comment) |
The clang-format check wants to reformat the entire gtest.h file, should gtest.h be excluded from the check? |
The AT2 h100 check is failing with
I'm not sure what that indicates, probably something I should forward to sys admins? |
@ndellingwood let's not format gtest. The way the format check is set up right now is that it tries to format all changed files, rather than specific files. |
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.
I'd rather put the cast in the test itself rather than modify gtest.
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.
Same as Carl, can you let us know which test triggers this compiler error?
Also I am somewhat surprised that this does not appear in the Kokkos Kernels CI directly? Let us know what combination of compiler flags and KK configuration triggers this failure so we can cover it better.
I'll close this, for reference this is the -Werror reported on cdash:
https://trilinos-cdash.sandia.gov/viewBuildError.php?buildid=1994256 |
The offending line is
Where lhs is a This strikes me as a common case, I'm not sure why we don't see it in our testing |
Resolve
error: comparison of integer expressions of different signedness: 'const long unsigned int' and 'const long int' [-Werror=sign-compare]
The warning is triggering -Werror in Trilinos nightly integration builds