From f078739d97d522af13cd667f70185bf8c093e9f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 28 Jan 2022 01:26:08 +0100 Subject: [PATCH] Drop -ansi from CXXFLAGS because it is actually a synonym for enforcing -std=c++98. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 133b3127ab69b497f2b1cfe9ac2386e6dd24288d) --- acinclude.m4.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acinclude.m4.in b/acinclude.m4.in index 213a7ca..89648ca 100644 --- a/acinclude.m4.in +++ b/acinclude.m4.in @@ -3509,7 +3509,7 @@ AC_DEFUN([AC_CHECK_COMPILERS], case $host in *-*-linux-gnu) CFLAGS="-W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS" - CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS" + CXXFLAGS="-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS" KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"]) KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"]) ;;