Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress -Wundef warnings #157

Merged
merged 2 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
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
5 changes: 0 additions & 5 deletions ext/fiddle/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ def enable_debug_build_flag(flags)
end
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")
$defs.push('-DFFI_GO_CLOSURES=0')
end
end
end
end

Expand Down
1 change: 1 addition & 0 deletions ext/fiddle/fiddle.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
# endif
#endif

#define FFI_GO_CLOSURES 0 /* fiddle does not use go closures */
#ifdef USE_HEADER_HACKS
#include <ffi/ffi.h>
#else
Expand Down