2011-02-22 10:05:41 -05:00
|
|
|
#ifdef EIGEN_WARNINGS_DISABLED
|
|
|
|
|
#undef EIGEN_WARNINGS_DISABLED
|
|
|
|
|
|
|
|
|
|
#ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
|
#pragma warning( pop )
|
|
|
|
|
#elif defined __INTEL_COMPILER
|
|
|
|
|
#pragma warning pop
|
2011-02-27 20:18:03 -05:00
|
|
|
#elif defined __clang__
|
|
|
|
|
#pragma clang diagnostic pop
|
2018-04-21 22:08:26 +02:00
|
|
|
#elif defined __GNUC__
|
2016-05-19 15:21:53 +02:00
|
|
|
#pragma GCC diagnostic pop
|
2016-02-09 20:55:50 -08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if defined __NVCC__
|
2016-02-03 14:10:06 -08:00
|
|
|
// Don't reenable the diagnostic messages, as it turns out these messages need
|
|
|
|
|
// to be disabled at the point of the template instantiation (i.e the user code)
|
2016-09-02 15:41:17 -07:00
|
|
|
// otherwise they'll be triggered by nvcc.
|
2016-02-03 14:10:06 -08:00
|
|
|
// #pragma diag_default code_is_unreachable
|
|
|
|
|
// #pragma diag_default initialization_not_reachable
|
|
|
|
|
// #pragma diag_default 2651
|
|
|
|
|
// #pragma diag_default 2653
|
2011-02-22 10:05:41 -05:00
|
|
|
#endif
|
2016-05-19 15:21:53 +02:00
|
|
|
|
2011-02-22 10:05:41 -05:00
|
|
|
#endif
|
|
|
|
|
|
2011-02-23 09:23:11 +01:00
|
|
|
#endif // EIGEN_WARNINGS_DISABLED
|