diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-02 21:40:06 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-02 21:40:06 +0000 |
commit | 332297419613bf3df97e77d4f21ee7be6b1da1aa (patch) | |
tree | d03b94c87a9455bd4227d26b65e8d5165861cb03 | |
parent | 899742b26930aac433a64f00c960fa08250d062b (diff) | |
download | ruby-332297419613bf3df97e77d4f21ee7be6b1da1aa.tar.gz |
* lib/mkmf.rb (have_type): suppress a warning with -Wall.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/mkmf.rb | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -1,7 +1,9 @@ -Fri Aug 3 06:17:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> +Fri Aug 3 06:40:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * lib/mkmf.rb: more verbose message. [ruby-Bugs-12766] + * lib/mkmf.rb (have_type): suppress a warning with -Wall. + Fri Aug 3 00:00:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * bignum.c (big2str_table): base cannot be 0 or 1. diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 7e20545994..fbc0f56618 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -793,7 +793,7 @@ def have_type(type, headers = nil, opt = "", &b) #{headers} /*top*/ typedef #{type} conftest_type; -static conftest_type conftestval[sizeof(conftest_type)?1:-1]; +int conftestval[sizeof(conftest_type)?1:-1]; SRC $defs.push(format("-DHAVE_TYPE_%s", type.strip.upcase.tr_s("^A-Z0-9_", "_"))) true |