X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fstr%2Ftest%2Fcompile_fail-islower.c;h=8f5c456197ff33cb2e4fdeef9704702b2aefa43c;hb=ad2ce76c10f808283ea7cf25cd8e76a15710c4f3;hp=9dec95f69a0881cbe530a62c4e2abac849fda6d5;hpb=ecea073699c60fd5aab9e3955f59a7042d637b68;p=ccan diff --git a/ccan/str/test/compile_fail-islower.c b/ccan/str/test/compile_fail-islower.c index 9dec95f6..8f5c4561 100644 --- a/ccan/str/test/compile_fail-islower.c +++ b/ccan/str/test/compile_fail-islower.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 islower. @@ -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 islower(c);