From 9c6d05f44d07cc579211f27260c840d2add00cfe Mon Sep 17 00:00:00 2001 From: Martin Oliveira Date: Thu, 13 Aug 2026 08:12:36 -0600 Subject: [PATCH] ccan/meson: fix ccan/minmax compilation error with -Wall When compiling with -Wall in Rockylinux 9.8, compilation fails with: In file included from ../src/nvme/util.c:36: ../ccan/ccan/minmax/minmax.h:14:2: error: #error Sorry, minmax module requires statement expressions and typeof This was tracked to an error in meson.build, with the following in the meson-log.txt: testfile.c:5:9: error: 'x' is used uninitialized [-Werror=uninitialized] 5 | y = x; | ~~^~~ Fix by initializing said variable. Signed-off-by: Martin Oliveira --- ccan/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccan/meson.build b/ccan/meson.build index 78f572d6..f40401e3 100644 --- a/ccan/meson.build +++ b/ccan/meson.build @@ -123,7 +123,7 @@ ccan_config.set10('HAVE_SYS_UNISTD_H', ccan_config.set10('HAVE_TYPEOF', cc.compiles(''' int main(void) { - int x; + int x = 0; __typeof__(x) y; y = x; return y == x ? 0 : 1;