From 621adbd71d3cc81e56b7f8ec01551ab34feb9c56 Mon Sep 17 00:00:00 2001 From: Gavin Howard Date: Fri, 4 Mar 2022 21:31:07 -0700 Subject: [PATCH] Workaround a clang bug Clang seems to think that BC_C11 is not defined, but if you look in the include/status.h header, you'll see that it is definitely defined. So, we need to work around the Clang bug. Signed-off-by: Gavin Howard --- scripts/release.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/release.sh b/scripts/release.sh index c4b9bb9a..12097b1c 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -601,6 +601,8 @@ clang_flags="-Weverything -Wno-padded -Wno-switch-enum -Wno-format-nonliteral" clang_flags="$clang_flags -Wno-cast-align -Wno-missing-noreturn -Wno-disabled-macro-expansion" clang_flags="$clang_flags -Wno-unreachable-code -Wno-unreachable-code-return" clang_flags="$clang_flags -Wno-implicit-fallthrough -Wno-unused-macros -Wno-gnu-label-as-value" +# -Wno-undef is here because Clang seems to think BC_C11 is undefined, when it's defined. +clang_flags="$clang_flags -Wno-undef" gcc_flags="-Wno-maybe-uninitialized -Wno-clobbered" # Common CFLAGS.