Skip to content

Commit

Permalink
ext: tell clang to ignore unknown options
Browse files Browse the repository at this point in the history
Related to #2689
  • Loading branch information
flavorjones committed Nov 11, 2022
1 parent 9a51899 commit 8a2e77e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ext/nokogiri/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,10 @@ def do_clean
append_cflags("-Wmissing-noreturn")

# handle clang variations, see #1101
append_cflags("-Wno-error=unused-command-line-argument-hard-error-in-future") if darwin?
if darwin?
append_cflags("-Wno-error=unused-command-line-argument-hard-error-in-future")
append_cflags("-Wno-unknown-warning-option")
end

# these tend to be noisy, but on occasion useful during development
# append_cflags(["-Wcast-qual", "-Wwrite-strings"])
Expand Down

0 comments on commit 8a2e77e

Please sign in to comment.