aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/nomalloc.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2013-02-26 18:10:19 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2013-02-26 18:10:19 +0100
commit61a2995d03e8950d706a45589a3aface84bbdba3 (patch)
treed6ff54f0dca92d99c43d1b0ddcb59bf58a101215 /test/nomalloc.cpp
parentfe2c8e1c36d1ce8b9d8e987d8d76102bb3a3e627 (diff)
Remove ICC warning in nomalloc unit test.
Diffstat (limited to 'test/nomalloc.cpp')
-rw-r--r--test/nomalloc.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/nomalloc.cpp b/test/nomalloc.cpp
index d4ffcefcb..a05bcb3ee 100644
--- a/test/nomalloc.cpp
+++ b/test/nomalloc.cpp
@@ -12,6 +12,12 @@
#ifdef __GNUC__
#define throw(X)
#endif
+
+#ifdef __INTEL_COMPILER
+ // disable "warning #76: argument to macro is empty" produced by the above hack
+ #pragma warning disable 76
+#endif
+
// discard stack allocation as that too bypasses malloc
#define EIGEN_STACK_ALLOCATION_LIMIT 0
// any heap allocation will raise an assert