From 7e9c9fbb2d9b7e3d3467367913be078e0aaa322a Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Wed, 12 Sep 2018 14:40:39 +0200 Subject: [PATCH] Disable type-limits warnings for g++ < 4.8 --- Eigen/src/Core/util/DisableStupidWarnings.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Eigen/src/Core/util/DisableStupidWarnings.h b/Eigen/src/Core/util/DisableStupidWarnings.h index d04b52649..6e93bbc0f 100755 --- a/Eigen/src/Core/util/DisableStupidWarnings.h +++ b/Eigen/src/Core/util/DisableStupidWarnings.h @@ -52,6 +52,10 @@ #endif // g++ warns about local variables shadowing member functions, which is too strict #pragma GCC diagnostic ignored "-Wshadow" + #if __GNUC__ == 4 && __GNUC_MINOR__ < 8 + // Until g++-4.7 there are warnings when comparing unsigned int vs 0, even in templated functions: + #pragma GCC diagnostic ignored "-Wtype-limits" + #endif #if __GNUC__>=6 #pragma GCC diagnostic ignored "-Wignored-attributes" #endif