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@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2054>
This commit is contained in:
Alan Coopersmith 2025-08-10 11:20:01 -07:00 committed by Marge Bot
parent dcd1ffa0c2
commit d03c84b57f

View file

@ -82,7 +82,7 @@ const ModuleVersions LoaderVersionInfo = {
ABI_EXTENSION_VERSION,
};
static int ModuleDuplicated[] = { };
static int ModuleDuplicated[] = { 0 };
static void
FreeStringList(char **paths)