From 804e5adee6d1062d42f07f02066ae3627d3cdf03 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 8 May 2008 16:17:17 +0200 Subject: [PATCH] Add more warnings. --- cmake/Modules/DefineCompilerFlags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Modules/DefineCompilerFlags.cmake b/cmake/Modules/DefineCompilerFlags.cmake index 241f9145b..98c518650 100644 --- a/cmake/Modules/DefineCompilerFlags.cmake +++ b/cmake/Modules/DefineCompilerFlags.cmake @@ -34,7 +34,7 @@ if (UNIX AND NOT WIN32) string(REGEX REPLACE "[\r\n]" " " ${_lfs_CFLAGS} "${${_lfs_CFLAGS}}") add_definitions(${_lfs_CFLAGS}) - add_definitions(-Wall -W -Wmissing-prototypes -Wdeclaration-after-statement) + add_definitions(-Wall -W -Wmissing-prototypes -Wdeclaration-after-statement -Wreturn-type -Wunused) check_cxx_compiler_flag("-fstack-protector" WITH_STACK_PROTECTOR) if (WITH_STACK_PROTECTOR)