Changed: Little less verbose warnings
This commit is contained in:
parent
426098fd9e
commit
c6e4e1d15a
1 changed files with 2 additions and 2 deletions
|
@ -880,14 +880,14 @@ MACRO(NL_SETUP_BUILD)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF(WITH_WARNINGS)
|
IF(WITH_WARNINGS)
|
||||||
ADD_PLATFORM_FLAGS("-Wall -W")
|
ADD_PLATFORM_FLAGS("-Wall")
|
||||||
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
|
# never display these warnings because they are minor
|
||||||
ADD_PLATFORM_FLAGS("-Wno-unused-parameter")
|
ADD_PLATFORM_FLAGS("-Wno-unused-parameter -Wno-unused-private-field -Wno-unused-local-typedef -Wno-unused-variable")
|
||||||
|
|
||||||
IF(ANDROID)
|
IF(ANDROID)
|
||||||
ADD_PLATFORM_FLAGS("--sysroot=${PLATFORM_ROOT}")
|
ADD_PLATFORM_FLAGS("--sysroot=${PLATFORM_ROOT}")
|
||||||
|
|
Loading…
Reference in a new issue