From a1ad0deb3216f9e40d5940f5c12f94d6dbc9e546 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 25 Aug 2009 13:58:30 +0200 Subject: [PATCH] Set gcc to c99 standard and enable pedantic. --- 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 97ece25d..c6531f6b 100644 --- a/cmake/Modules/DefineCompilerFlags.cmake +++ b/cmake/Modules/DefineCompilerFlags.cmake @@ -4,7 +4,7 @@ include(CheckCCompilerFlag) if (UNIX AND NOT WIN32) if (CMAKE_COMPILER_IS_GNUCC) - add_definitions(-Wall -Wextra -Wmissing-prototypes -Wdeclaration-after-statement -Wunused) + add_definitions(-std=gnu99 -pedantic -Wall -Wextra -Wshadow -Wmissing-prototypes -Wdeclaration-after-statement -Wunused) # with -fPIC check_c_compiler_flag("-fPIC" WITH_FPIC)