Add more warnings.

This commit is contained in:
Andreas Schneider 2008-05-08 16:17:17 +02:00
parent 8fc9e93ee0
commit 804e5adee6

View file

@ -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)