From f9a59e3a72c1988a0340ef90cacc94370ff55bb3 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 1 Jan 2023 08:46:10 +0200 Subject: [PATCH 36/36] Meson: Ignore 'attributes' errors in C++ Windows/debug builds Qt headers cause such warnings with newer g++ See osdn #46408 Signed-off-by: Marko Lindqvist --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 3afef78921..e3d59b38e5 100644 --- a/meson.build +++ b/meson.build @@ -81,6 +81,10 @@ if get_option('debug') priv_conf_data.set('FREECIV_DEBUG', 1) pub_conf_data.set('FREECIV_DEBUG', 1) add_global_arguments('-Werror', language: ['c', 'cpp']) + if host_system == 'windows' + # Qt headers have problems with dllimport attributes + add_global_arguments('-Wno-error=attributes', language : 'cpp') + endif else add_global_arguments('-DQT_NO_DEBUG', language : 'cpp') endif -- 2.39.0