* 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
This commit is contained in:
nobu 2007-08-02 21:40:06 +00:00
parent 899742b269
commit 3322974196
2 changed files with 4 additions and 2 deletions

View File

@ -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.

View File

@ -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