- Added warnings for declarations after statements

This commit is contained in:
Paul Bakker 2009-07-11 19:16:30 +00:00
parent 0049c2fd19
commit 3bcf28c21f

View File

@ -3,7 +3,7 @@ project(POLARSSL C)
enable_testing()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 -Wall -W -fprofile-arcs -ftest-coverage -lgcov")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 -Wall -W -Wdeclaration-after-statement -fprofile-arcs -ftest-coverage -lgcov")
set(CMAKE_SHARED_LINKER_FLAGS "-fprofile-arcs -ftest-coverage")
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 -Wall -W")
#set(CMAKE_SHARED_LINKER_FLAGS "")