From 6af6cf0c2e1f4e19971a95176f3d6cde7ce20bd6 Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Sat, 21 Feb 2015 19:43:56 +0100 Subject: [PATCH] I can reproduce any problems that justified this hack. However it makes builds fail in C++11 mode. --- test/nomalloc.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/test/nomalloc.cpp b/test/nomalloc.cpp index 306664210..060276a20 100644 --- a/test/nomalloc.cpp +++ b/test/nomalloc.cpp @@ -8,19 +8,9 @@ // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. -// this hack is needed to make this file compiles with -pedantic (gcc) -#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 +// heap allocation will raise an assert if enabled at runtime #define EIGEN_RUNTIME_NO_MALLOC #include "main.h"