From da39ebb71d225575166d6d722d0d00172eb3548f Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 22 Mar 2023 22:12:02 +0200 Subject: [PATCH 43/43] Meson: Use -Werror on 'capture this' configure check So if it's causing warnings, it won't end up breaking build time with -Werror This was causing build failure at least on Haiku See osdn #47644 Signed-off-by: Marko Lindqvist --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index a4be1ce817..dc80e2b2eb 100644 --- a/meson.build +++ b/meson.build @@ -754,7 +754,8 @@ class me { void top(); }; void me::top() { [=, this]() {}; }; ''', - name: 'C++20 capture this') + name: 'C++20 capture this', + args: ['-Werror', '-Wall']) pub_conf_data.set('FREECIV_HAVE_CXX20_CAPTURE_THIS', 1) endif -- 2.39.2