From 078761e3741060a842078609509c7ac7e3098b54 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 10 May 2021 16:43:55 +0300 Subject: [PATCH 47/47] Meson: Set -Werror in debug builds See osdn #42213 Signed-off-by: Marko Lindqvist --- meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meson.build b/meson.build index 94e0ce7653..95b1bdbd55 100644 --- a/meson.build +++ b/meson.build @@ -44,6 +44,8 @@ priv_conf_data.set('IS_DEVEL_VERSION', 1) if get_option('debug') priv_conf_data.set('FREECIV_DEBUG', 1) pub_conf_data.set('FREECIV_DEBUG', 1) + add_global_arguments('-Werror', language: 'c') + add_global_arguments('-Werror', language: 'cpp') else add_global_arguments('-DQT_NO_DEBUG', language : 'cpp') endif -- 2.30.2