1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* configure.in: added -fno-strict-overflow. it suppress annoying

-Wstrict-overflow warning.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2011-11-27 12:27:00 +00:00
parent 8cee31214d
commit 543820885e
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Sun Nov 27 21:25:33 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: added -fno-strict-overflow. it suppress annoying
-Wstrict-overflow warning.
Sun Nov 27 20:58:02 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> Sun Nov 27 20:58:02 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (rb_write_error2): get rid of warning on linux. fwrite * io.c (rb_write_error2): get rid of warning on linux. fwrite

View file

@ -496,7 +496,10 @@ if test "$GCC:${warnflags+set}:no" = yes::no; then
warnflags= warnflags=
fi fi
if test "$GCC" = yes; then if test "$GCC" = yes; then
# -D_FORTIFY_SOURCE
RUBY_TRY_CFLAGS(-D_FORTIFY_SOURCE=2, [RUBY_APPEND_OPTION(XCFLAGS, -D_FORTIFY_SOURCE=2)]) RUBY_TRY_CFLAGS(-D_FORTIFY_SOURCE=2, [RUBY_APPEND_OPTION(XCFLAGS, -D_FORTIFY_SOURCE=2)])
# -fstack-protector
AS_CASE(["$target_os"], AS_CASE(["$target_os"],
[mingw*], [ [mingw*], [
stack_protector=no stack_protector=no
@ -508,6 +511,9 @@ if test "$GCC" = yes; then
RUBY_APPEND_OPTION(XCFLAGS, -fstack-protector) RUBY_APPEND_OPTION(XCFLAGS, -fstack-protector)
RUBY_APPEND_OPTION(XLDFLAGS, -fstack-protector) RUBY_APPEND_OPTION(XLDFLAGS, -fstack-protector)
fi fi
# suppress annoying -Wstrict-overflow warnings
RUBY_TRY_CFLAGS(-fno-strict-overflow, [RUBY_APPEND_OPTION(XCFLAGS, -fno-strict-overflow)])
fi fi
if test "$GCC" = ""; then if test "$GCC" = ""; then