aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-02-22 09:31:22 -0500
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-02-22 09:31:22 -0500
commitd8e97aee8977b8b65acc928192122a753f8582f2 (patch)
treec1d95bc5276580a5b2854e2143e7e9b004d500a5 /Eigen/src
parent625814464e504449fcc8ffd27ed20d31d9ec658a (diff)
shut up stupid ICC warnings
Diffstat (limited to 'Eigen/src')
-rw-r--r--Eigen/src/Core/util/DisableStupidWarnings.h (renamed from Eigen/src/Core/util/DisableMSVCWarnings.h)11
-rw-r--r--Eigen/src/Core/util/EnableMSVCWarnings.h4
-rw-r--r--Eigen/src/Core/util/ReenableStupidWarnings.h5
3 files changed, 14 insertions, 6 deletions
diff --git a/Eigen/src/Core/util/DisableMSVCWarnings.h b/Eigen/src/Core/util/DisableStupidWarnings.h
index 7de55d83c..01c04abdc 100644
--- a/Eigen/src/Core/util/DisableMSVCWarnings.h
+++ b/Eigen/src/Core/util/DisableStupidWarnings.h
@@ -1,4 +1,3 @@
-
#ifdef _MSC_VER
// 4100 - unreferenced formal parameter (occurred e.g. in aligned_allocator::destroy(pointer p))
// 4101 - unreferenced local variable
@@ -14,4 +13,12 @@
// 4717 - 'function' : recursive on all control paths, function will cause runtime stack overflow
#pragma warning( push )
#pragma warning( disable : 4100 4101 4127 4181 4211 4244 4273 4324 4512 4522 4700 4717 )
-#endif
+#elif defined __INTEL_COMPILER
+ // 2196 - routine is both "inline" and "noinline" ("noinline" assumed)
+ // ICC 12 generates this warning even without any inline keyword, when defining class methods 'inline' i.e. inside of class body
+ // 2536 - type qualifiers are meaningless here
+ // ICC 12 generates this warning when a function return type is const qualified, even if that type is a template-parameter-dependent
+ // typedef that may be a reference type
+ #pragma warning push
+ #pragma warning disable 2196 2536
+#endif \ No newline at end of file
diff --git a/Eigen/src/Core/util/EnableMSVCWarnings.h b/Eigen/src/Core/util/EnableMSVCWarnings.h
deleted file mode 100644
index 8bd61601e..000000000
--- a/Eigen/src/Core/util/EnableMSVCWarnings.h
+++ /dev/null
@@ -1,4 +0,0 @@
-
-#ifdef _MSC_VER
- #pragma warning( pop )
-#endif
diff --git a/Eigen/src/Core/util/ReenableStupidWarnings.h b/Eigen/src/Core/util/ReenableStupidWarnings.h
new file mode 100644
index 000000000..d1164a82c
--- /dev/null
+++ b/Eigen/src/Core/util/ReenableStupidWarnings.h
@@ -0,0 +1,5 @@
+#ifdef _MSC_VER
+ #pragma warning( pop )
+#elif defined __intel_compiler
+ #pragma warning pop
+#endif \ No newline at end of file