From 2c92057d7546c3748609bc30cfd8472ccd339e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Wed, 18 May 2022 15:01:48 +0200 Subject: [PATCH] Activate more compiler warnings with -Wextra However, disable -Wunused-parameter which creates too many false positives in polymorphic methods. Also, only disable -Wdangling-else instead of the whole of -Wparentheses. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 3622b315..ddd9846b 100644 --- a/configure.ac +++ b/configure.ac @@ -43,7 +43,7 @@ esac # Use C++ for testing headers AC_LANG([C++]) -AM_CXXFLAGS="-std=gnu++20 -Wall -Wno-parentheses -Wold-style-cast" +AM_CXXFLAGS="-std=gnu++20 -Wall -Wno-dangling-else -Wextra -Wno-unused-parameter -Wold-style-cast" AC_SUBST([AM_CXXFLAGS]) # If default 'ar' is not available, try to find one with a host prefix (see ticket #145) -- GitLab