mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-02 18:20:38 +08:00
bug #1221: disable gcc 6 warning: ignoring attributes on template argument
This commit is contained in:
parent
df9a5e13c6
commit
73693b5de6
@ -41,6 +41,14 @@
|
|||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#endif
|
#endif
|
||||||
#pragma clang diagnostic ignored "-Wconstant-logical-operand"
|
#pragma clang diagnostic ignored "-Wconstant-logical-operand"
|
||||||
|
|
||||||
|
#elif defined __GNUC__ && __GNUC__>=6
|
||||||
|
|
||||||
|
#ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#endif
|
||||||
|
#pragma GCC diagnostic ignored "-Wignored-attributes"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined __NVCC__
|
#if defined __NVCC__
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
#pragma warning pop
|
#pragma warning pop
|
||||||
#elif defined __clang__
|
#elif defined __clang__
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
|
#elif defined __GNUC__ && __GNUC__>=6
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined __NVCC__
|
#if defined __NVCC__
|
||||||
@ -19,6 +21,7 @@
|
|||||||
// #pragma diag_default 2651
|
// #pragma diag_default 2651
|
||||||
// #pragma diag_default 2653
|
// #pragma diag_default 2653
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // EIGEN_WARNINGS_DISABLED
|
#endif // EIGEN_WARNINGS_DISABLED
|
||||||
|
Loading…
x
Reference in New Issue
Block a user