X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fargpar%2Fargpar.c;h=21edec0ab7a85b23c26ab38ee2956c00450a1626;hp=68bb5a426d5fb471747e7cd81495a959a12ec7c2;hb=a0377dfefe40662ba7d68617bce6ff467114136c;hpb=cc3b9644f017a91d347d7a414387292e3175635e diff --git a/src/common/argpar/argpar.c b/src/common/argpar/argpar.c index 68bb5a426..21edec0ab 100644 --- a/src/common/argpar/argpar.c +++ b/src/common/argpar/argpar.c @@ -4,7 +4,6 @@ * Copyright 2019 Philippe Proulx */ -#include #include #include #include @@ -17,7 +16,7 @@ #define argpar_calloc(_type, _nmemb) ((_type *) calloc((_nmemb), sizeof(_type))) #define argpar_zalloc(_type) argpar_calloc(_type, 1) -#define ARGPAR_ASSERT(_cond) assert(_cond) +#define ARGPAR_ASSERT(_cond) ((void) sizeof((void) (_cond), 0)) #ifdef __MINGW_PRINTF_FORMAT # define ARGPAR_PRINTF_FORMAT __MINGW_PRINTF_FORMAT