mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-29 23:26:00 +00:00
Changed: Display all warnings excepted unused parameters
--HG-- branch : develop
This commit is contained in:
parent
bb9db58f0c
commit
957bb8eeed
1 changed files with 4 additions and 1 deletions
|
@ -875,12 +875,15 @@ MACRO(NL_SETUP_BUILD)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF(WITH_WARNINGS)
|
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()
|
ELSE()
|
||||||
# Check wrong formats in printf-like functions
|
# Check wrong formats in printf-like functions
|
||||||
ADD_PLATFORM_FLAGS("-Wformat -Werror=format-security")
|
ADD_PLATFORM_FLAGS("-Wformat -Werror=format-security")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
# never display these warnings because they are minor
|
||||||
|
ADD_PLATFORM_FLAGS("-Wno-unused-parameter")
|
||||||
|
|
||||||
IF(ANDROID)
|
IF(ANDROID)
|
||||||
ADD_PLATFORM_FLAGS("--sysroot=${PLATFORM_ROOT}")
|
ADD_PLATFORM_FLAGS("--sysroot=${PLATFORM_ROOT}")
|
||||||
ADD_PLATFORM_FLAGS("-ffunction-sections -funwind-tables")
|
ADD_PLATFORM_FLAGS("-ffunction-sections -funwind-tables")
|
||||||
|
|
Loading…
Reference in a new issue