Add -Werror compiler flag

Compiler warnings are runtime errors waiting to happen.
This commit is contained in:
Lassi Kortela 2019-08-28 20:51:15 +03:00
parent 2d89603691
commit aca621c32e
1 changed files with 1 additions and 1 deletions

View File

@ -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)