[glib: 1/4] meson: Add -Wno-format-zero-length for gcc/clang builds
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/4] meson: Add -Wno-format-zero-length for gcc/clang builds
- Date: Fri, 1 May 2020 16:58:09 +0000 (UTC)
commit 4cf4dbfc1e36d0b792b0e4f6eb2359787ff9e155
Author: Martin Storsjö <martin martin st>
Date: Mon Apr 27 16:19:35 2020 +0300
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 34d830c21..b13739792 100644
--- a/meson.build
+++ b/meson.build
@@ -396,6 +396,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',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]