diff --git a/ext/date/extconf.rb b/ext/date/extconf.rb index 8a1467d..3ab534f 100644 --- a/ext/date/extconf.rb +++ b/ext/date/extconf.rb @@ -3,6 +3,9 @@ config_string("strict_warnflags") {|w| $warnflags += " #{w}"} +unless try_compile("", "", werror: true) + append_cflags("-Wno-default-const-init-field-unsafe") +end append_cflags("-Wno-compound-token-split-by-macro") if RUBY_VERSION < "2.7." have_func("rb_category_warn") with_werror("", {:werror => true}) do |opt, |