From 957bb8eeed4e55a0d23095afdc2be77da9f18976 Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 5 Dec 2016 19:42:11 +0100 Subject: [PATCH] Changed: Display all warnings excepted unused parameters --HG-- branch : develop --- code/CMakeModules/nel.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/CMakeModules/nel.cmake b/code/CMakeModules/nel.cmake index d347009f4..dc728d868 100644 --- a/code/CMakeModules/nel.cmake +++ b/code/CMakeModules/nel.cmake @@ -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")