darkhttpd/devel/clang-warns
2020-07-01 19:41:46 +10:00

14 lines
297 B
Bash
Executable File

#!/bin/bash
#
# Build with clang with all warnings.
#
TARGET=$(dirname $0)/../darkhttpd.c
if [[ -z "$CLANG" ]]; then
CLANG="$(which clang)"
fi
"$CLANG" -Weverything -O \
-Wno-unreachable-code -Wno-padded -Wno-disabled-macro-expansion \
-Wno-reserved-id-macro \
-DDEBUG $TARGET
rm -f a.out