diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-14 02:33:04 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-14 02:33:04 +0000 |
commit | bd0a9d2fb603d308086b37499773bae50065a1fa (patch) | |
tree | ee28ec3d365260a4eef2014268dcf234db0da61e /configure.in | |
parent | 28507c96270e2b2d067f82367e3a47c47e75ef0f (diff) | |
download | ruby-bd0a9d2fb603d308086b37499773bae50065a1fa.tar.gz |
* configure.in: Add -Werror=declaration-after-statement to default
warning flag. If you are using GCC, this flag is useful to
prevent breaking VC build.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 26ab9749aa..9dacccd369 100644 --- a/configure.in +++ b/configure.in @@ -445,6 +445,7 @@ AC_DEFUN(RUBY_TRY_LDFLAGS, [ if test "$GCC:${warnflags+set}:no" = yes::no; then for wflag in -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings \ + -Werror=declaration-after-statement \ -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long; do RUBY_TRY_CFLAGS($wflag, [warnflags="${warnflags+$warnflags }$wflag"]) done |