* 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
This commit is contained in:
naruse 2010-12-14 02:33:04 +00:00
Родитель 28507c9627
Коммит bd0a9d2fb6
2 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Tue Dec 14 11:25:20 2010 NARUSE, Yui <naruse@ruby-lang.org>
* 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.
Tue Dec 14 10:25:57 2010 NAKAMURA Usaku <usa@ruby-lang.org> Tue Dec 14 10:25:57 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/openssl/ossl_asn1.c (ossl_asn1_decode0): how many gcc-c99isms * ext/openssl/ossl_asn1.c (ossl_asn1_decode0): how many gcc-c99isms

Просмотреть файл

@ -445,6 +445,7 @@ AC_DEFUN(RUBY_TRY_LDFLAGS, [
if test "$GCC:${warnflags+set}:no" = yes::no; then if test "$GCC:${warnflags+set}:no" = yes::no; then
for wflag in -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings \ 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 -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long; do
RUBY_TRY_CFLAGS($wflag, [warnflags="${warnflags+$warnflags }$wflag"]) RUBY_TRY_CFLAGS($wflag, [warnflags="${warnflags+$warnflags }$wflag"])
done done