From 9870f66c652d7bcc058504d7a9ff7da2e7fa3ede Mon Sep 17 00:00:00 2001 From: Gregory Szorc Date: Sat, 18 Apr 2020 15:38:39 -0700 Subject: [PATCH] macos: suppress some very chatty warnings We were seeing thousands of warnings in the macOS SDK when building on LLVM 10. Probably due to new warnings in that toolchain. Let's suppress them and make build output reasonable again. --- cpython-unix/build-cpython.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpython-unix/build-cpython.sh b/cpython-unix/build-cpython.sh index fb20730e..e416230d 100755 --- a/cpython-unix/build-cpython.sh +++ b/cpython-unix/build-cpython.sh @@ -113,6 +113,10 @@ if [ "${PYBUILD_PLATFORM}" = "macos" ]; then # Prevent using symbols not supported by current macOS SDK target. CFLAGS="${CFLAGS} -Werror=unguarded-availability-new" + + # Suppress extremely frequent warnings we see in macOS SDK headers + # with LLVM 10. + CFLAGS="${CFLAGS} -Wno-nullability-completeness -Wno-expansion-to-defined" fi CPPFLAGS=$CFLAGS