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
parent
2795207802
commit
2c92057d75
|
@ -43,7 +43,7 @@ esac
|
||||||
# Use C++ for testing headers
|
# Use C++ for testing headers
|
||||||
AC_LANG([C++])
|
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])
|
AC_SUBST([AM_CXXFLAGS])
|
||||||
|
|
||||||
# If default 'ar' is not available, try to find one with a host prefix (see ticket #145)
|
# If default 'ar' is not available, try to find one with a host prefix (see ticket #145)
|
||||||
|
|
Loading…
Reference in New Issue