From f41eb5c836482c77247d90033def3ad83431eeeb Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 7 Mar 2011 22:30:32 -0800 Subject: [PATCH] compile with -ansi and -pedantic --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5c5f3da6f..4e920c890 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ if (${CMAKE_C_COMPILER} MATCHES ".*tcc") endif(${CMAKE_C_COMPILER} MATCHES ".*tcc") if (${CMAKE_C_COMPILER} MATCHES ".*gcc") - set(CMAKE_C_FLAGS "-g -Wall -Werror -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wno-char-subscripts") + set(CMAKE_C_FLAGS "-g -Wall -Werror -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wno-char-subscripts -ansi -pedantic") endif(${CMAKE_C_COMPILER} MATCHES ".*gcc") if (WIN32)