Enable -Wextra -Wno-unused-parameter by default for gcc

This commit is contained in:
Stefan Rueger 2023-01-12 00:01:46 +00:00
parent 6088c9b98f
commit 22f9bc5260
No known key found for this signature in database
GPG Key ID: B0B4F1FD86B1EC55
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ if(MSVC)
)
else()
set(LIB_MATH m)
add_compile_options(-Wall) # -Wextra
add_compile_options(-Wall -Wextra -Wno-unused-parameter)
endif()
# =====================================

View File

@ -429,7 +429,7 @@ fi
# If we are compiling with gcc, enable all warnings and make warnings errors.
if test "$GCC" = yes; then
ENABLE_WARNINGS="-Wall"
ENABLE_WARNINGS="-Wall -Wextra -Wno-unused-parameter"
# does this compiler support -Wno-pointer-sign ?
AC_MSG_CHECKING([if gcc accepts -Wno-pointer-sign ])