1 #ifndef EIGEN_WARNINGS_DISABLED 2 #define EIGEN_WARNINGS_DISABLED 19 #ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS 20 #pragma warning( push ) 22 #pragma warning( disable : 4100 4101 4127 4181 4211 4244 4273 4324 4503 4512 4522 4700 4717 4800) 24 #elif defined __INTEL_COMPILER 32 #ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS 35 #pragma warning disable 2196 279 1684 2259 37 #elif defined __clang__ 40 #ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS 41 #pragma clang diagnostic push 43 #pragma clang diagnostic ignored "-Wconstant-logical-operand" 45 #elif defined __GNUC__ && __GNUC__>=6 47 #ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS 48 #pragma GCC diagnostic push 50 #pragma GCC diagnostic ignored "-Wignored-attributes" 56 #pragma diag_suppress code_is_unreachable 58 #pragma diag_suppress initialization_not_reachable 60 #pragma diag_suppress 2651 61 #pragma diag_suppress 2653 62 #pragma diag_suppress 2668 63 #pragma diag_suppress 2669 64 #pragma diag_suppress 2670 65 #pragma diag_suppress 2671 68 #endif // not EIGEN_WARNINGS_DISABLED