]> git.feebdaed.xyz Git - 0xmirror/qemu.git/commit
tcg/tci: Disable -Wundef FFI_GO_CLOSURES warning
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 3 Dec 2025 14:04:21 +0000 (14:04 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 5 Dec 2025 13:50:15 +0000 (07:50 -0600)
commit8c00f56fcaf60f42474ca277e86c95f55941aa0d
tree809c1e1fe849b51551a44241121998f124350ce3
parent93fa8293442fcb1f297d0ee7c669539cd009cf26
tcg/tci: Disable -Wundef FFI_GO_CLOSURES warning

Since we build TCI with FFI (commit 22f15579fa1 "tcg: Build ffi data
structures for helpers") we get on Darwin:

  In file included from ../../tcg/tci.c:22:
  In file included from include/tcg/helper-info.h:13:
  /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/ffi/ffi.h:483:5: warning: 'FFI_GO_CLOSURES' is not defined, evaluates to 0 [-Wundef]
    483 | #if FFI_GO_CLOSURES
        |     ^
  1 warning generated.

This was fixed in upstream libffi in 2023, but not backported to MacOSX.
Simply disable the warning locally.

Reported-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/tcg/helper-info.h