From: Olliver Schinagl Date: Sat, 5 Aug 2023 07:40:44 +0000 (+0200) Subject: Use explicitly on format warnings for Time test X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2375a63a118797bb0dbac9d71740a5351dd49f3d;p=thirdparty%2Ftvheadend.git Use explicitly on format warnings for Time test It looks like the compile check doesn't work properly on some architectures, which appears to eat or ignore the -Werror flag. Instead, be more specific in that we state that printf formatting errors are to be triggered on, and treated as an error explicitly, which in the end is exactly what we are after. Signed-off-by: Olliver Schinagl --- diff --git a/configure b/configure index 3a4eb39aa..7df3ea9aa 100755 --- a/configure +++ b/configure @@ -291,7 +291,7 @@ int test(void) printf("%ld", (time_t)1); return 0; } -' -Werror +' '-Wformat -Werror=format' check_cc_snippet time_lld ' #define _FILE_OFFSET_BITS 64 @@ -305,7 +305,7 @@ int test(void) printf("%lld", (time_t)1); return 0; } -' -Werror +' '-Wformat -Werror=format' if enabled time_lld; then printf " ^ using time_t format 'lld'\n"