diff options
author | 2011-02-27 20:18:03 -0500 | |
---|---|---|
committer | 2011-02-27 20:18:03 -0500 | |
commit | 4846c76d9d7e2e343381c9f55c308cedb2f292b6 (patch) | |
tree | 5a5e440c04d6a0858bfadc71e2f87f57d0fef10f /Eigen/src/Core/util | |
parent | afc9efca15af0da3ddf8cb3217f22fe45e22bb93 (diff) |
shut up a stupid clang 2.8 warning
Diffstat (limited to 'Eigen/src/Core/util')
-rw-r--r-- | Eigen/src/Core/util/DisableStupidWarnings.h | 7 | ||||
-rw-r--r-- | Eigen/src/Core/util/ReenableStupidWarnings.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/DisableStupidWarnings.h b/Eigen/src/Core/util/DisableStupidWarnings.h index 69e557ae5..6ec1252ef 100644 --- a/Eigen/src/Core/util/DisableStupidWarnings.h +++ b/Eigen/src/Core/util/DisableStupidWarnings.h @@ -28,6 +28,13 @@ #pragma warning push #endif #pragma warning disable 2196 2536 +#elif defined __clang__ + // -Wconstant-logical-operand - warning: use of logical && with constant operand; switch to bitwise & or remove constant + // this is really a stupid warning as it warns on compile-time expressions involving enums + #ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS + #pragma clang diagnostic push + #endif + #pragma clang diagnostic ignored "-Wconstant-logical-operand" #endif #endif // not EIGEN_WARNINGS_DISABLED diff --git a/Eigen/src/Core/util/ReenableStupidWarnings.h b/Eigen/src/Core/util/ReenableStupidWarnings.h index 321aeec3c..5ddfbd4aa 100644 --- a/Eigen/src/Core/util/ReenableStupidWarnings.h +++ b/Eigen/src/Core/util/ReenableStupidWarnings.h @@ -6,6 +6,8 @@ #pragma warning( pop ) #elif defined __INTEL_COMPILER #pragma warning pop + #elif defined __clang__ + #pragma clang diagnostic pop #endif #endif |