From 214024627a4503ca8a40434f6293d71b8267ecda Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 28 Aug 2026 19:31:33 +0900 Subject: [PATCH] Suppress warnings by clang 21 https://bugs.ruby-lang.org/issues/21629 --- ext/date/extconf.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/date/extconf.rb b/ext/date/extconf.rb index 8a1467df..3ab534f8 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, |