ruby-changes:38844
From: nobu <ko1@a...>
Date: Wed, 17 Jun 2015 09:12:51 +0900 (JST)
Subject: [ruby-changes:38844] nobu:r50925 (trunk): mkmf.rb: suppress warnings
nobu 2015-06-17 09:12:30 +0900 (Wed, 17 Jun 2015) New Revision: 50925 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50925 Log: mkmf.rb: suppress warnings * lib/mkmf.rb (try_func, try_var): suppress unused-but-set-variable warnings. Modified files: trunk/lib/mkmf.rb Index: lib/mkmf.rb =================================================================== --- lib/mkmf.rb (revision 50924) +++ lib/mkmf.rb (revision 50925) @@ -768,7 +768,7 @@ int main() {printf("%"PRI_CONFTEST_PREFI https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L768 /*top*/ extern int t(void); #{MAIN_DOES_NOTHING 't'} -int t(void) { #{decltype["volatile p"]}; p = (#{decltype[]})#{func}; return 0; } +int t(void) { #{decltype["volatile p"]}; p = (#{decltype[]})#{func}; return !p; } SRC call && try_link(<<"SRC", opt, &b) #{headers} @@ -787,7 +787,7 @@ SRC https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L787 /*top*/ extern int t(void); #{MAIN_DOES_NOTHING 't'} -int t(void) { const volatile void *volatile p; p = &(&#{var})[0]; return 0; } +int t(void) { const volatile void *volatile p; p = &(&#{var})[0]; return !p; } SRC end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/