summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index d284567..b6cd04f 100755
--- a/build.sh
+++ b/build.sh
@@ -9,7 +9,12 @@ CC=clang
ADDITIONAL_FLAGS='-Wno-unused-function -Wno-unneeded-internal-declaration'
-WARNINGS='-Wall -Wextra -Wpedantic -Wconversion -Wshadow'
+if [[ $CC == "clang" ]]; then
+ WARNINGS='-Wall -Wextra -Wpedantic -Wshadow -Wimplicit-fallthrough'
+else
+ WARNINGS='-Wall -Wextra -Wpedantic -Wshadow'
+fi
+
DEBUG_FLAGS="-O0 -g3 $WARNINGS -std=c11 -DTOC_DEBUG"
RELEASE_FLAGS="-O3 -s -DNDEBUG $WARNINGS -std=c11"