aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util/DisableStupidWarnings.h
diff options
context:
space:
mode:
authorGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2018-08-28 18:26:22 +0200
committerGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2018-08-28 18:26:22 +0200
commitef4d79fed8b84f03fe3c7ace98442c822cf3472a (patch)
treebed73281091dd10a1b3d8b9938ae255f612f07a5 /Eigen/src/Core/util/DisableStupidWarnings.h
parentbefaf83f5f4cfafc7b17c8e384e0457c8493393f (diff)
Disable/ReenableStupidWarnings did not work properly, when included recursively
Diffstat (limited to 'Eigen/src/Core/util/DisableStupidWarnings.h')
-rwxr-xr-xEigen/src/Core/util/DisableStupidWarnings.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/DisableStupidWarnings.h b/Eigen/src/Core/util/DisableStupidWarnings.h
index af832ae77..d04b52649 100755
--- a/Eigen/src/Core/util/DisableStupidWarnings.h
+++ b/Eigen/src/Core/util/DisableStupidWarnings.h
@@ -80,4 +80,12 @@
#pragma diag_suppress 2739
#endif
+#else
+// warnings already disabled:
+# ifndef EIGEN_WARNINGS_DISABLED_2
+# define EIGEN_WARNINGS_DISABLED_2
+# elif defined(EIGEN_INTERNAL_DEBUGGING)
+# error "Do not include \"DisableStupidWarnings.h\" recursively more than twice!"
+# endif
+
#endif // not EIGEN_WARNINGS_DISABLED