From d03c84b57f1455b20518781026777b938194b2a4 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 10 Aug 2025 11:20:01 -0700 Subject: [PATCH] xfree86: Fix builds with gcc -Wpedantic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../hw/xfree86/loader/loadmod.c:85:33: warning: ISO C forbids empty initializer braces before C23 [-Wpedantic] 85 | static int ModuleDuplicated[] = { }; | ^ ../hw/xfree86/loader/loadmod.c:85:12: error: zero or negative size array ‘ModuleDuplicated’ 85 | static int ModuleDuplicated[] = { }; | ^~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith Part-of: --- hw/xfree86/loader/loadmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/loader/loadmod.c b/hw/xfree86/loader/loadmod.c index cca11028c..e4e6c5fd6 100644 --- a/hw/xfree86/loader/loadmod.c +++ b/hw/xfree86/loader/loadmod.c @@ -82,7 +82,7 @@ const ModuleVersions LoaderVersionInfo = { ABI_EXTENSION_VERSION, }; -static int ModuleDuplicated[] = { }; +static int ModuleDuplicated[] = { 0 }; static void FreeStringList(char **paths)