From 427f2f66d69ae9b124c2f8bcd927fb6e19e07e91 Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Fri, 14 Jun 2019 14:57:46 +0200 Subject: [PATCH] bug #1724: Mask buggy warnings with g++-7 --- Eigen/src/Core/util/DisableStupidWarnings.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Eigen/src/Core/util/DisableStupidWarnings.h b/Eigen/src/Core/util/DisableStupidWarnings.h index 820b2405b..74f74cc42 100755 --- a/Eigen/src/Core/util/DisableStupidWarnings.h +++ b/Eigen/src/Core/util/DisableStupidWarnings.h @@ -57,7 +57,10 @@ #if __GNUC__>=6 #pragma GCC diagnostic ignored "-Wignored-attributes" #endif - + #if __GNUC__==7 + // See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89325 + #pragma GCC diagnostic ignored "-Wattributes" + #endif #endif #if defined __NVCC__