mkmf.rb: suppress warnings
* lib/mkmf.rb (try_func, try_var): suppress unused-but-set-variable warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
af68619a6c
commit
71ebbe334d
@ -768,7 +768,7 @@ int main() {printf("%"PRI_CONFTEST_PREFIX"#{neg ? 'd' : 'u'}\\n", conftest_const
|
||||
/*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
|
||||
/*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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user