aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-17 00:46:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-17 00:46:30 +0000
commitdb577345ca577e36dd8026b43f9e104d4680a4ad (patch)
treef86147e41da1944f8c36ae1fa87cdb13f5084b9d /lib/mkmf.rb
parent3c5f42a90a64446d67cc691ce878678b07ea8e02 (diff)
downloadruby-db577345ca577e36dd8026b43f9e104d4680a4ad.tar.gz
mkmf.rb: suppress warnings
* lib/mkmf.rb (try_func): suppress implicit-function-declaration warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 78521d3875..7b213c2f62 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -775,6 +775,7 @@ SRC
/*top*/
extern int t(void);
#{MAIN_DOES_NOTHING 't'}
+#{"extern void #{call};" if decltype}
int t(void) { #{call}; return 0; }
SRC
end