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 | 7fe9ebc2d88ac610e2292cc2cd69b81ec47116ac (patch) | |
tree | 980ccdb12ec2fe76f014e73ba647579fbacfa4ed | |
parent | e1fac13c2b5cecf83ca456366f09c3edc1d9cb47 (diff) |
* lib/mkmf.rb (have_type): suppress a warning with -Wall.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@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. + Thu Aug 2 13:46:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * sprintf.c (rb_f_sprintf): should not check positional number as diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 9c6f1c66f2..14c270c3cc 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -775,7 +775,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 |