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>
printf("%ld", (time_t)1);
return 0;
}
-' -Werror
+' '-Wformat -Werror=format'
check_cc_snippet time_lld '
#define _FILE_OFFSET_BITS 64
printf("%lld", (time_t)1);
return 0;
}
-' -Werror
+' '-Wformat -Werror=format'
if enabled time_lld; then
printf " ^ using time_t format 'lld'\n"