aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-27 16:32:27 -0400
committeriamcheeseman <[email protected]>2026-05-27 16:32:27 -0400
commit9d997b496f9d475c6e08e33f9aa2555612c8f87b (patch)
treebf2af51ecdc2793a9e99be095ddf2858e6bd8858
parent1dc4161137921f1399b141239e6285d0e741152d (diff)
enable -Werror
-rwxr-xr-xbuild.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 556bb50..377a5e3 100755
--- a/build.sh
+++ b/build.sh
@@ -5,9 +5,9 @@ set -e
source build.env
INC="-Iteensy -Iteensy/platform/$PLATFORM -Idc -Ieditor"
-WARN="-Wall -Wextra -Wno-override-init-side-effects"
-# Dumb warning ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-# Absolutely dreadful.
+WARN="-Wall -Wextra -Werror -Wno-error=unused-variable"
+WARN="$WARN -Wno-error=unused-function -Wno-error=unused-parameter"
+WARN="$WARN -Wno-override-init-side-effects" # Dumb warning. Dreadful.
CFLAGS="$INC $WARN -std=c99 -D_XOPEN_SOURCE=700 -O2" LDFLAGS=-lm
DO_RUN=0