darkhttpd/devel/clang-warns

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