summaryrefslogtreecommitdiffhomepage
path: root/cmake/modules/IntrospectSystem.cmake
diff options
context:
space:
mode:
authorMasaki Muranaka <[email protected]>2012-10-15 13:23:49 +0900
committerMasaki Muranaka <[email protected]>2012-10-15 13:25:11 +0900
commit5444c3bbb3d3f6274c08c58c266421ed594d9f6b (patch)
treefdb4a578b2107da2f2eefda0c8e9d3af7ea69131 /cmake/modules/IntrospectSystem.cmake
parent4dcd7cdacd6e19a1c5120fa8366a4887e79da5b6 (diff)
downloadmruby-5444c3bbb3d3f6274c08c58c266421ed594d9f6b.tar.gz
mruby-5444c3bbb3d3f6274c08c58c266421ed594d9f6b.zip
Add more strict warning checks
Diffstat (limited to 'cmake/modules/IntrospectSystem.cmake')
-rw-r--r--cmake/modules/IntrospectSystem.cmake2
1 files changed, 1 insertions, 1 deletions
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")