X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fstr%2Ftest%2Fcompile_fail-isalpha.c;h=33d365538aff0a28c6f5b7f36119363ab6d7ae71;hb=870b63169c782ef0cc52687397e5b9a7125a61b0;hp=76de15041ce537a876ce8bd15c32a07b5e33af02;hpb=ecea073699c60fd5aab9e3955f59a7042d637b68;p=ccan diff --git a/ccan/str/test/compile_fail-isalpha.c b/ccan/str/test/compile_fail-isalpha.c index 76de1504..33d36553 100644 --- a/ccan/str/test/compile_fail-isalpha.c +++ b/ccan/str/test/compile_fail-isalpha.c @@ -3,6 +3,7 @@ int main(int argc, char *argv[]) { + (void)argc; #ifdef FAIL #if !HAVE_BUILTIN_TYPES_COMPATIBLE_P || !HAVE_TYPEOF #error We need typeof to check isalpha. @@ -15,8 +16,7 @@ int main(int argc, char *argv[]) #ifdef FAIL /* Fake fail on unsigned char platforms. */ - c = 255; - BUILD_ASSERT(c < 0); + BUILD_ASSERT((char)255 < 0); #endif return isalpha(c);