diff options
Diffstat (limited to 'include/libipset')
-rw-r--r-- | include/libipset/utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libipset/utils.h b/include/libipset/utils.h index c22687f..2c88a83 100644 --- a/include/libipset/utils.h +++ b/include/libipset/utils.h @@ -25,6 +25,11 @@ #define MAX(a, b) (a > b ? a : b) #define UNUSED __attribute__ ((unused)) +#ifdef NDEBUG +#define ASSERT_UNUSED UNUSED +#else +#define ASSERT_UNUSED +#endif #ifndef ARRAY_SIZE #define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x))) |