From 1de88b05593f2ff069d4e90f41436e1d91cfed6f Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 29 Aug 2013 09:04:33 +0200 Subject: [PATCH] Fix the ASSERT() macro. --- lib/base/debug.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/base/debug.h b/lib/base/debug.h index 9587f47f0..06ce556cd 100644 --- a/lib/base/debug.h +++ b/lib/base/debug.h @@ -24,11 +24,7 @@ #include #ifdef NDEBUG -# if defined(__clang__) || (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) -# define ASSERT(expr) __builtin_unreachable() -# else -# define ASSERT(expr) ((void)0) -# endif +# define ASSERT(expr) ((void)0) #else /* NDEBUG */ # define ASSERT(expr) ((expr) ? 0 : icinga_assert_fail(#expr, __FILE__, __LINE__)) #endif /* NDEBUG */