|
WPILibC++ 2023.4.3
|
Go to the documentation of this file. 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 4181 4211 4244 4273 4324 4503 4512 4522 4700 4714 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"
44 #if __clang_major__ >= 3 && __clang_minor__ >= 5
45 #pragma clang diagnostic ignored "-Wabsolute-value"
47 #if __clang_major__ >= 10
48 #pragma clang diagnostic ignored "-Wimplicit-int-float-conversion"
50 #if ( defined(__ALTIVEC__) || defined(__VSX__) ) && __cplusplus < 201103L
53 #pragma clang diagnostic ignored "-Wc11-extensions"
58 #if (!defined(EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS)) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
59 #pragma GCC diagnostic push
62 #pragma GCC diagnostic ignored "-Wshadow"
63 #if __GNUC__ == 4 && __GNUC_MINOR__ < 8
65 #pragma GCC diagnostic ignored "-Wtype-limits"
68 #pragma GCC diagnostic ignored "-Wignored-attributes"
72 #pragma GCC diagnostic ignored "-Wattributes"
75 #pragma GCC diagnostic ignored "-Wclass-memaccess"
79 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
83 #pragma GCC diagnostic ignored "-Warray-bounds"
88 #pragma diag_suppress boolean_controlling_expr_is_constant
90 #pragma diag_suppress code_is_unreachable
92 #pragma diag_suppress initialization_not_reachable
94 #pragma diag_suppress 1222
96 #pragma diag_suppress 2527
97 #pragma diag_suppress 2529
98 #pragma diag_suppress 2651
99 #pragma diag_suppress 2653
100 #pragma diag_suppress 2668
101 #pragma diag_suppress 2669
102 #pragma diag_suppress 2670
103 #pragma diag_suppress 2671
104 #pragma diag_suppress 2735
105 #pragma diag_suppress 2737
106 #pragma diag_suppress 2739
111# ifndef EIGEN_WARNINGS_DISABLED_2
112# define EIGEN_WARNINGS_DISABLED_2
113# elif defined(EIGEN_INTERNAL_DEBUGGING)
114# error "Do not include \"DisableStupidWarnings.h\" recursively more than twice!"