diff --git a/configure.ac b/configure.ac
index 3622b3159e729da0aa85297099cc047be3a901f1..ddd9846b7c40569aa7d8f7c90acf2cce1b19e465 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)