shut up a stupid clang 2.8 warning

This commit is contained in:
Benoit Jacob 2011-02-27 20:18:03 -05:00
parent afc9efca15
commit 4846c76d9d
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -6,6 +6,8 @@
#pragma warning( pop )
#elif defined __INTEL_COMPILER
#pragma warning pop
#elif defined __clang__
#pragma clang diagnostic pop
#endif
#endif