[PATCH xserver 3/4] meson: Silence -Wformat-nonliteral for x86emu

Lyude Paul lyude at redhat.com
Fri Oct 13 19:44:31 UTC 2017


Signed-off-by: Lyude Paul <lyude at redhat.com>
---
 hw/xfree86/int10/meson.build | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/hw/xfree86/int10/meson.build b/hw/xfree86/int10/meson.build
index 3bcf99ab4..b1ead9c4c 100644
--- a/hw/xfree86/int10/meson.build
+++ b/hw/xfree86/int10/meson.build
@@ -25,6 +25,12 @@ if int10 == 'x86emu'
     ]
     int10_c_args += '-D_X86EMU'
     int10_c_args += '-DNO_SYS_HEADERS'
+
+    # Silence some useless warnings from x86emu
+    if cc.has_argument('-Wno-format-nonliteral')
+        int10_c_args += '-Wno-format-nonliteral'
+    endif
+
     int10_link += xorg_x86emu
 endif
 
-- 
2.13.6



More information about the xorg-devel mailing list