From 9e3c73110af86ccedbb2ba46d6c11e1a2c71c32e Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Thu, 22 Jan 2009 00:09:34 +0000 Subject: fix a bunch of warnings (actual issues) reported by Frank --- test/nomalloc.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/nomalloc.cpp') diff --git a/test/nomalloc.cpp b/test/nomalloc.cpp index 82119e9b3..5497ca339 100644 --- a/test/nomalloc.cpp +++ b/test/nomalloc.cpp @@ -24,7 +24,9 @@ // Eigen. If not, see . // this hack is needed to make this file compiles with -pedantic (gcc) +#ifdef __GNUC__ #define throw(X) +#endif // discard stack allocation as that too bypasses malloc #define EIGEN_STACK_ALLOCATION_LIMIT 0 // any heap allocation will raise an assert -- cgit v1.2.3