From 7e834ce870203004ee51e1fc237d5f0fb3c06ec7 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Wed, 16 Oct 2024 13:15:38 -0500 Subject: [PATCH] meson: add back '-Wno-unused-result' for gcc 0fd4c84a5ec8d1d178e55a01d612f0a39e50a828 removed this, but it turns out gcc acts differently and (void) doesn't silence the warning. Hence why the flag was there. Add it back. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425 --- meson.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meson.build b/meson.build index 7e816d8b29670..f92ef0d569616 100644 --- a/meson.build +++ b/meson.build @@ -299,6 +299,11 @@ if cc.has_multi_arguments('-Wformat', '-Werror=format-security') flags += '-Werror=format-security' endif +if cc.get_id() == 'gcc' + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425 + flags +='-Wno-unused-result' +endif + darwin = host_machine.system() == 'darwin' win32 = host_machine.system() == 'cygwin' or host_machine.system() == 'windows' posix = not win32