mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 07:00:03 +01:00
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:
parent
dcd1ffa0c2
commit
d03c84b57f
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ const ModuleVersions LoaderVersionInfo = {
|
|||
ABI_EXTENSION_VERSION,
|
||||
};
|
||||
|
||||
static int ModuleDuplicated[] = { };
|
||||
static int ModuleDuplicated[] = { 0 };
|
||||
|
||||
static void
|
||||
FreeStringList(char **paths)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue