1 #ifndef EIGEN_WARNINGS_DISABLED
2 #define EIGEN_WARNINGS_DISABLED
20 #ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
21 #pragma warning( push )
23 #pragma warning( disable : 4100 4101 4127 4181 4211 4244 4273 4324 4503 4512 4522 4700 4714 4717 4800)
25 #elif defined __INTEL_COMPILER
33 #ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
36 #pragma warning disable 2196 279 1684 2259
38 #elif defined __clang__
41 #ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
42 #pragma clang diagnostic push
44 #pragma clang diagnostic ignored "-Wconstant-logical-operand"
46 #elif defined __GNUC__
48 #if (!defined(EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS)) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
49 #pragma GCC diagnostic push
52 #pragma GCC diagnostic ignored "-Wshadow"
53 #if __GNUC__ == 4 && __GNUC_MINOR__ < 8
55 #pragma GCC diagnostic ignored "-Wtype-limits"
58 #pragma GCC diagnostic ignored "-Wignored-attributes"
65 #pragma diag_suppress code_is_unreachable
67 #pragma diag_suppress initialization_not_reachable
69 #pragma diag_suppress 1222
71 #pragma diag_suppress 2527
72 #pragma diag_suppress 2529
73 #pragma diag_suppress 2651
74 #pragma diag_suppress 2653
75 #pragma diag_suppress 2668
76 #pragma diag_suppress 2669
77 #pragma diag_suppress 2670
78 #pragma diag_suppress 2671
79 #pragma diag_suppress 2735
80 #pragma diag_suppress 2737
83 #endif // not EIGEN_WARNINGS_DISABLED