X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Fassert-pre.h;h=c28ec4c45034f9ed09c6bd96bfbd3dc3ab7bc1cb;hb=85e7137bc3a69800efca39a38eea8deb4816d4a9;hp=6264c8ac1c0e6e5cb7fc57794df466676ae48747;hpb=5586bb37bd531a433e18f096f028f0f4ec182dd7;p=babeltrace.git diff --git a/src/lib/assert-pre.h b/src/lib/assert-pre.h index 6264c8ac..c28ec4c4 100644 --- a/src/lib/assert-pre.h +++ b/src/lib/assert-pre.h @@ -43,7 +43,7 @@ #include #include -#include "common/babeltrace.h" +#include "common/macros.h" #ifdef BT_DEV_MODE /* @@ -100,7 +100,7 @@ # define BT_ASSERT_PRE_MSG BT_LIB_LOGF #else # define BT_ASSERT_PRE(_cond, _fmt, ...) ((void) sizeof((void) (_cond), 0)) -# define BT_ASSERT_PRE_FUNC BT_UNUSED +# define BT_ASSERT_PRE_FUNC __attribute__((unused)) # define BT_ASSERT_PRE_MSG(_fmt, ...) #endif /* BT_DEV_MODE */