#pragma GCC diagnostic push/pop is not supported prioro to gcc 4.6

This commit is contained in:
Gael Guennebaud 2018-09-27 09:23:54 +02:00
parent 64ec5a1a6b
commit 148e579cc0
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@
#elif defined __GNUC__ #elif defined __GNUC__
#ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS #if (!defined(EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS)) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
#pragma GCC diagnostic push #pragma GCC diagnostic push
#endif #endif
// g++ warns about local variables shadowing member functions, which is too strict // g++ warns about local variables shadowing member functions, which is too strict

View File

@ -8,7 +8,7 @@
#pragma warning pop #pragma warning pop
#elif defined __clang__ #elif defined __clang__
#pragma clang diagnostic pop #pragma clang diagnostic pop
#elif defined __GNUC__ && __GNUC__>=6 #elif defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif #endif