From aca621c32e10b706d9b0c82a828b6806b1b75516 Mon Sep 17 00:00:00 2001 From: Lassi Kortela Date: Wed, 28 Aug 2019 20:51:15 +0300 Subject: [PATCH] Add -Werror compiler flag Compiler warnings are runtime errors waiting to happen. --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 2adf87e..d08c6c0 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -38,7 +38,7 @@ o_files="$o_files text_ini.o" o_files="$o_files time_unix.o" o_files="$o_files utf8.o" o_files="$o_files util.o" -default_cflags="-Wall -O2 -D NDEBUG -D USE_COMPUTED_GOTO -Wextra -std=gnu99 -Wno-strict-aliasing" +default_cflags="-Wall -Werror -Wextra -O2 -D NDEBUG -D USE_COMPUTED_GOTO -std=gnu99 -Wno-strict-aliasing" default_lflags="-lm" case "$os" in darwin)