mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
meson: Add -Wno-format-zero-length for gcc/clang builds
Zero length format strings isn't something that needs to be warned about.
This commit is contained in:
parent
de8708cd95
commit
4cf4dbfc1e
@ -396,6 +396,8 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
|
|||||||
# Due to function casts through (void*) we cannot support -Wpedantic:
|
# Due to function casts through (void*) we cannot support -Wpedantic:
|
||||||
# https://wiki.gnome.org/Projects/GLib/CompilerRequirements#Function_pointer_conversions.
|
# https://wiki.gnome.org/Projects/GLib/CompilerRequirements#Function_pointer_conversions.
|
||||||
'-Wno-pedantic',
|
'-Wno-pedantic',
|
||||||
|
# A zero-length format string shouldn't be considered an issue.
|
||||||
|
'-Wno-format-zero-length',
|
||||||
'-Werror=declaration-after-statement',
|
'-Werror=declaration-after-statement',
|
||||||
'-Werror=format=2',
|
'-Werror=format=2',
|
||||||
'-Werror=implicit-function-declaration',
|
'-Werror=implicit-function-declaration',
|
||||||
|
Loading…
Reference in New Issue
Block a user