From 43c826021a4e61c4e7fcc962aa9aefd47fa6dbbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Mon, 27 Apr 2020 16:19:35 +0300 Subject: [PATCH] meson: Add -Wno-format-zero-length for gcc/clang builds Zero length format strings isn't something that needs to be warned about. --- meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meson.build b/meson.build index fd1623aad..e84251fbf 100644 --- a/meson.build +++ b/meson.build @@ -374,6 +374,8 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang' # Due to function casts through (void*) we cannot support -Wpedantic: # https://wiki.gnome.org/Projects/GLib/CompilerRequirements#Function_pointer_conversions. '-Wno-pedantic', + # A zero-length format string shouldn't be considered an issue. + '-Wno-format-zero-length', '-Werror=declaration-after-statement', '-Werror=format=2', '-Werror=implicit-function-declaration',