]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Use explicitly on format warnings for Time test
authorOlliver Schinagl <oliver@schinagl.nl>
Sat, 5 Aug 2023 07:40:44 +0000 (09:40 +0200)
committerFlole998 <Flole998@users.noreply.github.com>
Sun, 6 Aug 2023 07:39:05 +0000 (09:39 +0200)
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 <oliver@schinagl.nl>
configure

index 3a4eb39aa22653a6f6d451be964e7cdc4b0f654f..7df3ea9aa901c3e06cc86f79384a504df2f3c1b1 100755 (executable)
--- 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"