mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-10-09 04:01:01 +00:00
Enable -Wextra -Wno-unused-parameter by default for gcc
This commit is contained in:
@@ -77,7 +77,7 @@ if(MSVC)
|
|||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
set(LIB_MATH m)
|
set(LIB_MATH m)
|
||||||
add_compile_options(-Wall) # -Wextra
|
add_compile_options(-Wall -Wextra -Wno-unused-parameter)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# =====================================
|
# =====================================
|
||||||
|
@@ -429,7 +429,7 @@ fi
|
|||||||
|
|
||||||
# If we are compiling with gcc, enable all warnings and make warnings errors.
|
# If we are compiling with gcc, enable all warnings and make warnings errors.
|
||||||
if test "$GCC" = yes; then
|
if test "$GCC" = yes; then
|
||||||
ENABLE_WARNINGS="-Wall"
|
ENABLE_WARNINGS="-Wall -Wextra -Wno-unused-parameter"
|
||||||
|
|
||||||
# does this compiler support -Wno-pointer-sign ?
|
# does this compiler support -Wno-pointer-sign ?
|
||||||
AC_MSG_CHECKING([if gcc accepts -Wno-pointer-sign ])
|
AC_MSG_CHECKING([if gcc accepts -Wno-pointer-sign ])
|
||||||
|
Reference in New Issue
Block a user