]> granicus.if.org Git - icinga2/commitdiff
Fix the ASSERT() macro.
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 29 Aug 2013 07:04:33 +0000 (09:04 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 29 Aug 2013 07:04:33 +0000 (09:04 +0200)
lib/base/debug.h

index 9587f47f08e400229c93060ca8cc3e46a7d310b3..06ce556cd2fa0acbdf69fd280463c953b28c9f03 100644 (file)
 #include <stdio.h>
 
 #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 */