X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=include%2Fwimlib%2Fcompiler.h;h=6a87e8912338a759b7516db26109a99d2529cb0f;hp=2b1923c263f6c054c642d0b7c9b518b4e769f736;hb=a56bff8e3a55a1379e0b782b206b6f394e672189;hpb=4e8898e104c5a681a7530966464c4f7248c8762f diff --git a/include/wimlib/compiler.h b/include/wimlib/compiler.h index 2b1923c2..6a87e891 100644 --- a/include/wimlib/compiler.h +++ b/include/wimlib/compiler.h @@ -185,7 +185,9 @@ #endif /* STATIC_ASSERT() - verify the truth of an expression at compilation time. */ -#if __STDC_VERSION__ >= 201112L +#ifdef __CHECKER__ +# define STATIC_ASSERT(expr) +#elif __STDC_VERSION__ >= 201112L # define STATIC_ASSERT(expr) _Static_assert((expr), "") #else # define STATIC_ASSERT(expr) ((void)sizeof(char[1 - 2 * !(expr)]))