X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fassert-pre-internal.h;h=58364736441b7508cec33d5b1452225fcc2e5f87;hp=cc412340f69bb0d119c32b5b319fc3270e7f55ed;hb=312c056ae3d374b253fa0cfe5ed576c0b0e5e569;hpb=d1e4683534e67cc8643ad27536f64f6cc54bc5dc diff --git a/include/babeltrace/assert-pre-internal.h b/include/babeltrace/assert-pre-internal.h index cc412340..58364736 100644 --- a/include/babeltrace/assert-pre-internal.h +++ b/include/babeltrace/assert-pre-internal.h @@ -1,6 +1,8 @@ #ifndef BABELTRACE_ASSERT_PRE_INTERNAL_H #define BABELTRACE_ASSERT_PRE_INTERNAL_H +#include + /* * Copyright (c) 2018 EfficiOS Inc. and Linux Foundation * Copyright (c) 2018 Philippe Proulx @@ -33,7 +35,7 @@ * also need to define it before including this header. * * This is a reminder that in order to use - * , you also need to use logging + * , you also need to use logging * explicitly. */ #ifndef BABELTRACE_LIB_LOGGING_INTERNAL_H @@ -97,7 +99,7 @@ # define BT_ASSERT_PRE_MSG BT_LIB_LOGF #else # define BT_ASSERT_PRE(_cond, _fmt, ...) -# define BT_ASSERT_PRE_FUNC __attribute__((unused)) +# define BT_ASSERT_PRE_FUNC BT_UNUSED # define BT_ASSERT_PRE_MSG(_fmt, ...) #endif /* BT_DEV_MODE */