Skip to content

Commit

Permalink
Workaround a clang bug
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
YzenaLLC committed Mar 5, 2022
1 parent 6d26f2a commit 621adbd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 621adbd

Please sign in to comment.