From 5444c3bbb3d3f6274c08c58c266421ed594d9f6b Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Mon, 15 Oct 2012 13:23:49 +0900 Subject: Add more strict warning checks --- cmake/modules/IntrospectSystem.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake/modules/IntrospectSystem.cmake') diff --git a/cmake/modules/IntrospectSystem.cmake b/cmake/modules/IntrospectSystem.cmake index e148563fa..722f4c3d7 100644 --- a/cmake/modules/IntrospectSystem.cmake +++ b/cmake/modules/IntrospectSystem.cmake @@ -2,7 +2,7 @@ # initial system defaults if(CMAKE_COMPILER_IS_GNUCC) - set(MRUBY_DEFAULT_CFLAGS "-Wall -Werror-implicit-function-declaration") + set(MRUBY_DEFAULT_CFLAGS "-std=gnu99 -Wall -Werror-implicit-function-declaration -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-pointer-sign -Wno-missing-field-initializers -Wformat=2 -Wstrict-aliasing=2 -Wdisabled-optimization -Wpointer-arith -Wdeclaration-after-statement -Wbad-function-cast -Wcast-align -Wredundant-decls") set(CMAKE_C_FLAGS "${MRUBY_DEFAULT_CFLAGS}") set(CMAKE_C_FLAGS_DEBUG "-O3 -ggdb") set(CMAKE_C_FLAGS_MINSIZEREL "-Os -DNDEBUG") -- cgit v1.2.3