Merge nowarn_unused-function

This commit is contained in:
Luke Dashjr 2025-03-05 03:27:08 +00:00
commit 45a2e5951c

View File

@ -411,6 +411,9 @@ dnl Some compilers (gcc) ignore unknown -Wno-* options, but warn about all
dnl unknown options if any other warning is produced. Test the -Wfoo case, and
dnl set the -Wno-foo case if it works.
AX_CHECK_COMPILE_FLAG([-Wunused-parameter], [NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-unused-parameter"], [], [$CXXFLAG_WERROR])
if test "$CXXFLAG_WERROR" != ""; then
AX_CHECK_COMPILE_FLAG([-Wunused-function], [NOWARN_CXXFLAGS="$NOWARN_CXXFLAGS -Wno-error=unused-function"], [], [$CXXFLAG_WERROR])
fi
dnl Don't allow extended (non-ASCII) symbols in identifiers. This is easier for code review.
AX_CHECK_COMPILE_FLAG([-fno-extended-identifiers], [CORE_CXXFLAGS="$CORE_CXXFLAGS -fno-extended-identifiers"], [], [$CXXFLAG_WERROR])