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.
fix-tolerance-parameters
Sébastien Villemot 2022-05-18 15:01:48 +02:00
parent 2795207802
commit 2c92057d75
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 1 additions and 1 deletions

View File

@ -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)