Disable warnings in clang properly
All threads resolved!
All threads resolved!
Summary
Disable warning -Wbitwise-instead-of-logical
only for clang where the warning actually exists (i.e. >= 14) and call #pragma diagnostic pop
only if previously called push
.
Edited by Simon Praetorius
Merge request reports
Activity
assigned to @simon.praetorius
- Resolved by Christoph Grüninger
Doesn't seem to work. From the runner with Clang 10:
501/builds/core/dune-common/dune/common/test/arithmetictestsuite.hh:602:34: warning: bitwise negation of a boolean expression; did you mean logical negation? [-Wbool-operation] DUNE_TEST_CHECK(bool(T(~T(T(i) ^ T(j))) == T(~(i^j)))); ^~~~~~~~~~~~~~~
added 1 commit
- 2e3e97bb - Disable bitwise operation warning in more files
mentioned in commit 5dcb1e2b
Please register or sign in to reply