X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fctf-writer%2Fassert-pre.h;h=5811d7d42a518b38b6b3fea98977ade9bbf7dee6;hb=91d8147391efdc4d42cc4e1c171a65c0372a008f;hp=8f66d514d6098bb4f6ccda2d70234efcf7919132;hpb=4e87f509dec8aed765d6b6b4c868be65b8580c37;p=babeltrace.git diff --git a/src/ctf-writer/assert-pre.h b/src/ctf-writer/assert-pre.h index 8f66d514..5811d7d4 100644 --- a/src/ctf-writer/assert-pre.h +++ b/src/ctf-writer/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_CTF_ASSERT_PRE_MSG BT_LOGF #else # define BT_CTF_ASSERT_PRE(_cond, _fmt, ...) ((void) sizeof((void) (_cond), 0)) -# define BT_CTF_ASSERT_PRE_FUNC BT_UNUSED +# define BT_CTF_ASSERT_PRE_FUNC __attribute__((unused)) # define BT_CTF_ASSERT_PRE_MSG(_fmt, ...) #endif /* BT_DEV_MODE */