Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/rb/ext/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@

append_cflags(["-fsigned-char", "-g", "-O2", "-Wall", "-Werror", "-Werror=old-style-definition"])

# clang 21+ introduced -Wdefault-const-init-field-unsafe, which fires on
# Ruby 3.2's rstring.h (struct RString has a const field via RBasic).
# This is a Ruby header issue, not a Thrift bug, so suppress the warning here.
# append_cflags silently ignores flags unsupported by the compiler, so this
# is safe across all clang versions.
append_cflags("-Wno-default-const-init-field-unsafe")

# Makes all symbols private by default to avoid unintended conflict
# with other gems. To explicitly export symbols you can use RUBY_FUNC_EXPORTED
# selectively, or entirely remove this flag.
Expand Down
Loading