Skip to content

Commit 7b9d9a8

Browse files
committed
unix: suppress deprecated-non-prototype warnings on LLVM 15
This warning appeared in LLVM 15 and is pretty chatty. Let's silence it.
1 parent 61b71b7 commit 7b9d9a8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cpython-unix/build-bdb.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@ CONFIGURE_FLAGS="--enable-dbm --disable-shared"
2121
# to configure and tell it pthread_yield() isn't available.
2222
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} ac_cv_func_pthread_yield=no"
2323

24-
CFLAGS="${EXTRA_TARGET_CFLAGS} -fPIC" CPPFLAGS="${EXTRA_TARGET_CFLAGS} -fPIC" ../dist/configure \
24+
CFLAGS="${EXTRA_TARGET_CFLAGS} -fPIC"
25+
26+
if [ "${CC}" = "clang" ]; then
27+
# deprecated-non-prototype gets very chatty with Clang 15. Suppress it.
28+
CFLAGS="${CFLAGS} -Wno-deprecated-non-prototype"
29+
fi
30+
31+
CFLAGS="${CFLAGS}" CPPFLAGS="${CFLAGS}" ../dist/configure \
2532
--build=${BUILD_TRIPLE} \
2633
--host=${TARGET_TRIPLE} \
2734
--prefix=/tools/deps \

0 commit comments

Comments
 (0)