summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh13
1 files changed, 3 insertions, 10 deletions
diff --git a/build.sh b/build.sh
index 3e3760c..abce67c 100755
--- a/build.sh
+++ b/build.sh
@@ -6,20 +6,13 @@ if [ "$CC" = "" ]; then
CC=gcc
fi
fi
-
-# Possible extra build flags
-# these are for compiling the compiler, and NOT for compiling the program itself.
-# -DNONZERO_NULL_PTRS
-# - must be set if the zero value of a pointer (as might be set by calloc/memset)
-# is not the NULL pointer.
-
-# ADDITIONAL_FLAGS='-Wno-unused-function'
+ADDITIONAL_FLAGS="$CFLAGS -Wno-unused-function"
if [ "$CC" = "clang" ]; then
- WARNINGS='-Wall -Wextra -Wpedantic -Wshadow -Wconversion -Wimplicit-fallthrough -Wno-unused-parameter'
+ WARNINGS='-Wall -Wextra -Wpedantic -Wshadow -Wconversion -Wimplicit-fallthrough'
else
- WARNINGS='-Wall -Wextra -Wpedantic -Wshadow -Wconversion -Wno-pointer-to-int-cast -Wno-unused-parameter'
+ WARNINGS='-Wall -Wextra -Wpedantic -Wshadow -Wconversion -Wno-pointer-to-int-cast'
fi
DEBUG_FLAGS="-O0 -g3 $WARNINGS -std=c11 -DTOC_DEBUG"