From aceb11dff4b3c05d027df664986515a89be1aac6 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 10 Apr 2015 13:29:23 +0000 Subject: mkmf.rb: fix werror option * lib/mkmf.rb (try_compile): pass the given werror flag to try_do to check if stderr is empty. * lib/mkmf.rb (try_cflags, try_ldflags): default werror to true. * win32/Makefile.sub (WERRORFLAG): remove useless option. VC does not make warnings of unknown command option an error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/date/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/date/extconf.rb') diff --git a/ext/date/extconf.rb b/ext/date/extconf.rb index cb346dfcd9..6f479eaa26 100644 --- a/ext/date/extconf.rb +++ b/ext/date/extconf.rb @@ -1,5 +1,5 @@ require 'mkmf' -if try_cflags("-std=iso9899:1999", :werror => true) +if try_cflags("-std=iso9899:1999") $CFLAGS += " " << "-std=iso9899:1999" end create_makefile('date_core') -- cgit v1.2.3