Skip to content

Commit

Permalink
Suppress -Wundef warnings
Browse files Browse the repository at this point in the history
The GCC warning puts undefined macro names in double quotes while
clang puts them in single quotes.
  • Loading branch information
nobu committed Oct 22, 2024
1 parent eea9fd0 commit ebac921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/fiddle/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def enable_debug_build_flag(flags)
if have_ffi_header && (have_library('ffi') || have_library('libffi'))
have_libffi = true
checking_for("undefined FFI_GO_CLOSURES is used") do
if egrep_cpp(/warning: 'FFI_GO_CLOSURES' is not defined/, cpp_include(ffi_header), "2>&1")
if egrep_cpp(/warning: \WFFI_GO_CLOSURES\W is not defined/, cpp_include(ffi_header), "2>&1")
$defs.push('-DFFI_GO_CLOSURES=0')
end
end
Expand Down

0 comments on commit ebac921

Please sign in to comment.