Skip to content

Commit 2140246

Browse files
committed
Suppress warnings by clang 21
https://bugs.ruby-lang.org/issues/21629
1 parent 02fbb1b commit 2140246

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ext/date/extconf.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
config_string("strict_warnflags") {|w| $warnflags += " #{w}"}
55

6+
unless try_compile("", "", werror: true)
7+
append_cflags("-Wno-default-const-init-field-unsafe")
8+
end
69
append_cflags("-Wno-compound-token-split-by-macro") if RUBY_VERSION < "2.7."
710
have_func("rb_category_warn")
811
with_werror("", {:werror => true}) do |opt, |

0 commit comments

Comments
 (0)