diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-09-09 13:25:44 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-09-09 13:56:13 +0900 |
commit | 2bd6c5dc1650e852a95961402b094ccf0909842b (patch) | |
tree | edaa3fd66ba63f367b4ac0b8376a93137fe9dfa5 /ext/date | |
parent | 5d815542815fe8b939239750bba7f8f0b79c97d6 (diff) |
[ruby/date] Ignore warned variables
To suppress warnings at the compilation time.
https://github.com/ruby/date/commit/ff21132203
Diffstat (limited to 'ext/date')
-rw-r--r-- | ext/date/extconf.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/date/extconf.rb b/ext/date/extconf.rb index 8938df13b3..f891de403d 100644 --- a/ext/date/extconf.rb +++ b/ext/date/extconf.rb @@ -3,7 +3,9 @@ require 'mkmf' 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') |