mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-25 07:43:14 +08:00
shut up a stupid clang 2.8 warning
This commit is contained in:
parent
afc9efca15
commit
4846c76d9d
@ -28,6 +28,13 @@
|
|||||||
#pragma warning push
|
#pragma warning push
|
||||||
#endif
|
#endif
|
||||||
#pragma warning disable 2196 2536
|
#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
|
||||||
|
|
||||||
#endif // not EIGEN_WARNINGS_DISABLED
|
#endif // not EIGEN_WARNINGS_DISABLED
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
#pragma warning( pop )
|
#pragma warning( pop )
|
||||||
#elif defined __INTEL_COMPILER
|
#elif defined __INTEL_COMPILER
|
||||||
#pragma warning pop
|
#pragma warning pop
|
||||||
|
#elif defined __clang__
|
||||||
|
#pragma clang diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user