ReenableStupidWarnings.h
Go to the documentation of this file.
1 #ifdef EIGEN_WARNINGS_DISABLED_2
2 // "DisableStupidWarnings.h" was included twice recursively: Do not re-enable warnings yet!
3 # undef EIGEN_WARNINGS_DISABLED_2
4 
5 #elif defined(EIGEN_WARNINGS_DISABLED)
6 #undef EIGEN_WARNINGS_DISABLED
7 
8 #ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
9  #ifdef _MSC_VER
10  #pragma warning( pop )
11  #elif defined __INTEL_COMPILER
12  #pragma warning pop
13  #elif defined __clang__
14  #pragma clang diagnostic pop
15  #elif defined __GNUC__ && !defined(__FUJITSU) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
16  #pragma GCC diagnostic pop
17  #endif
18 
19  #if defined __NVCC__
20 // Don't re-enable the diagnostic messages, as it turns out these messages need
21 // to be disabled at the point of the template instantiation (i.e the user code)
22 // otherwise they'll be triggered by nvcc.
23 // #define EIGEN_MAKE_PRAGMA(X) _Pragma(#X)
24 // #if __NVCC_DIAG_PRAGMA_SUPPORT__
25 // #define EIGEN_NV_DIAG_DEFAULT(X) EIGEN_MAKE_PRAGMA(nv_diag_default X)
26 // #else
27 // #define EIGEN_NV_DIAG_DEFAULT(X) EIGEN_MAKE_PRAGMA(diag_default X)
28 // #endif
29 // EIGEN_NV_DIAG_DEFAULT(code_is_unreachable)
30 // EIGEN_NV_DIAG_DEFAULT(initialization_not_reachable)
31 // EIGEN_NV_DIAG_DEFAULT(2651)
32 // EIGEN_NV_DIAG_DEFAULT(2653)
33 // #undef EIGEN_NV_DIAG_DEFAULT
34 // #undef EIGEN_MAKE_PRAGMA
35  #endif
36 
37 #endif
38 
39 #endif // EIGEN_WARNINGS_DISABLED