compile with -ansi and -pedantic

This commit is contained in:
Enno Rehling 2011-03-07 22:30:32 -08:00
parent 01acb1e7f6
commit f41eb5c836
1 changed files with 1 additions and 1 deletions

View File

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