xserver: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Aug 23 15:42:59 UTC 2025


 hw/xfree86/loader/loadmod.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d03c84b57f1455b20518781026777b938194b2a4
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Aug 10 11:20:01 2025 -0700

    xfree86: Fix builds with gcc -Wpedantic
    
    ../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 <alan.coopersmith at oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2054>

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)


More information about the xorg-commit mailing list