[前][次][番号順一覧][スレッド一覧]

ruby-changes:67665

From: Nobuyoshi <ko1@a...>
Date: Thu, 9 Sep 2021 14:51:50 +0900 (JST)
Subject: [ruby-changes:67665] 2bd6c5dc16 (master): [ruby/date] Ignore warned variables

https://git.ruby-lang.org/ruby.git/commit/?id=2bd6c5dc16

From 2bd6c5dc1650e852a95961402b094ccf0909842b Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 9 Sep 2021 13:25:44 +0900
Subject: [ruby/date] Ignore warned variables

To suppress warnings at the compilation time.

https://github.com/ruby/date/commit/ff21132203
---
 ext/date/extconf.rb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ext/date/extconf.rb b/ext/date/extconf.rb
index 8938df1..f891de4 100644
--- a/ext/date/extconf.rb
+++ b/ext/date/extconf.rb
@@ -3,7 +3,9 @@ require 'mkmf' https://github.com/ruby/ruby/blob/trunk/ext/date/extconf.rb#L3
 
 config_string("strict_warnflags") {|w| $warnflags += " #{w}"}
 
-have_var("timezone", "time.h")
-have_var("altzone", "time.h")
+with_werror("", {:werror => true}) do |opt, |
+  have_var("timezone", "time.h", opt)
+  have_var("altzone", "time.h", opt)
+end
 
 create_makefile('date_core')
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]