Changed: Display all warnings excepted unused parameters

This commit is contained in:
kervala 2016-12-05 19:42:11 +01:00
parent 1568d0f770
commit 17411bcc35

View file

@ -875,12 +875,15 @@ MACRO(NL_SETUP_BUILD)
ENDIF()
IF(WITH_WARNINGS)
ADD_PLATFORM_FLAGS("-Wall -W -Wpointer-arith -Wsign-compare -Wno-deprecated-declarations -Wno-multichar -Wno-unused")
ADD_PLATFORM_FLAGS("-Wall -W")
ELSE()
# Check wrong formats in printf-like functions
ADD_PLATFORM_FLAGS("-Wformat -Werror=format-security")
ENDIF()
# never display these warnings because they are minor
ADD_PLATFORM_FLAGS("-Wno-unused-parameter")
IF(ANDROID)
ADD_PLATFORM_FLAGS("--sysroot=${PLATFORM_ROOT}")
ADD_PLATFORM_FLAGS("-ffunction-sections -funwind-tables")