From 33866efaf4b5e8d3ccdff89ba4af9e20955f4069 Mon Sep 17 00:00:00 2001 From: Josef Schlehofer Date: Tue, 9 Jun 2026 11:45:00 +0200 Subject: bzip2recover: Use standard %llu format specifier Update the format specifier for unsigned long long in bzip2recover.c to use the standard %llu instead of %Lu. Modern compilers (such as Clang) emit a format warning when using the non-standard %Lu modifier. Fixes: bzip2recover.c:376:59: warning: length modifier 'L' results in undefined behavior or no effect with 'u' conversion specifier [-Wformat] 376 | fprintf ( stderr, " block %d runs from " MaybeUInt64_FMT | ^~~~~~~~~~~~~~~ bzip2recover.c:40:29: note: expanded from macro 'MaybeUInt64_FMT' 40 | # define MaybeUInt64_FMT "%Lu" | ~^~ bzip2recover.c:376:59: note: did you mean to use 'll'? Signed-off-by: Josef Schlehofer --- bzip2recover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bzip2recover.c b/bzip2recover.c index 4b1c219..95adeeb 100644 --- a/bzip2recover.c +++ b/bzip2recover.c @@ -37,7 +37,7 @@ */ #ifdef __GNUC__ typedef unsigned long long int MaybeUInt64; -# define MaybeUInt64_FMT "%Lu" +# define MaybeUInt64_FMT "%llu" #else #ifdef _MSC_VER typedef unsigned __int64 MaybeUInt64; -- cgit v1.2.3-55-g6feb