diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2011-02-27 20:18:03 -0500 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2011-02-27 20:18:03 -0500 |
commit | 4846c76d9d7e2e343381c9f55c308cedb2f292b6 (patch) | |
tree | 5a5e440c04d6a0858bfadc71e2f87f57d0fef10f /Eigen/src/Core/util/DisableStupidWarnings.h | |
parent | afc9efca15af0da3ddf8cb3217f22fe45e22bb93 (diff) |
shut up a stupid clang 2.8 warning
Diffstat (limited to 'Eigen/src/Core/util/DisableStupidWarnings.h')
-rw-r--r-- | Eigen/src/Core/util/DisableStupidWarnings.h | 7 |
1 files changed, 7 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 |