summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-10-16 04:31:20 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2012-10-16 04:31:20 -0700
commite2b95158a0eec9c097665f46f24c51af97493c21 (patch)
treefdb4a578b2107da2f2eefda0c8e9d3af7ea69131
parent4dcd7cdacd6e19a1c5120fa8366a4887e79da5b6 (diff)
parent5444c3bbb3d3f6274c08c58c266421ed594d9f6b (diff)
downloadmruby-e2b95158a0eec9c097665f46f24c51af97493c21.tar.gz
mruby-e2b95158a0eec9c097665f46f24c51af97493c21.zip
Merge pull request #491 from monaka/pr-more-strict-warning-checks
Add more strict warning checks
-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")