From 81e7bc1b026a10eb3de7f44aa39edf62a8ac2578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jere=20Lepp=C3=A4nen?= Date: Mon, 12 Jun 2023 14:21:58 +0300 Subject: [PATCH] configure: add -Wno-error=stringop-overflow also to CXXFLAGS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also c++ programs need -Wno-error=stringop-overflow flag, in order to avoid errors during linking, when using LTO. Signed-off-by: Jere Leppänen --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 8459553b447..18b3861d93c 100644 --- a/configure.ac +++ b/configure.ac @@ -120,6 +120,7 @@ AS_IF([test "$GCC" == yes], AS_IF([test `$CC -dumpversion | cut -d '.' -f 1` -ge 10], ODP_CHECK_CFLAG([-Wno-error=array-bounds]) ODP_CHECK_CFLAG([-Wno-error=stringop-overflow]) + ODP_CHECK_CXXFLAG([-Wno-error=stringop-overflow]) ) )