From 38d8be57f2f447e6ee7e485347bf9cdd1cb1feca Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Sat, 29 Apr 2023 21:33:45 +0000 Subject: [PATCH] Warnings are bad, mmkay? --- .make-and-exec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.make-and-exec b/.make-and-exec index 6c501c1..31b18a7 100755 --- a/.make-and-exec +++ b/.make-and-exec @@ -8,7 +8,7 @@ if [[ "$0" == *-dbg ]]; then opt='-Og -fsanitize=undefined,address -DDEBUG'; els targetfile="$(dirname "$0")/.make-and-exec-binaries/$(basename "$0")" if [[ ! -f "${targetfile}" || "${sourcename}" -nt "${targetfile}" || "${BASH_SOURCE}" -nt "${targetfile}" ]]; then mkdir -p "$(dirname "$0")/.make-and-exec-binaries" - gcc ${opt} ${CFLAGS} -o "${targetfile}" "${sourcename}" || exit + gcc -Wall -Wextra -Wshadow -Werror ${opt} ${CFLAGS} -o "${targetfile}" "${sourcename}" || exit testfile="$(dirname "$0")/.$(basename "${0%-dbg}")-test" if [[ -f "${testfile}" ]]; then "${testfile}" || { st=$?; touch -d '1970-01-01T00:00:00Z' "${targetfile}"; exit "${st}"; }