From 3bcf28c21f38fe75c77c8e468ea0a53d04c166eb Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Sat, 11 Jul 2009 19:16:30 +0000 Subject: [PATCH] - Added warnings for declarations after statements --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c58803b0..7448181ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 "")