Skip to content

Commit

Permalink
Enable -Werror (warnings are errors)
Browse files Browse the repository at this point in the history
  • Loading branch information
lassik committed Aug 27, 2019
1 parent ae3e498 commit b5a301c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
set -eu
cd "$(dirname "$0")"
default_cc=gcc
default_cflags="-Og -g -Wall -Wextra -pedantic -std=gnu99"
default_cflags="-Og -g -Wall -Werror -Wextra -pedantic -std=gnu99"
default_lflags=""
case "$(uname)" in
Darwin) default_cc=clang ;;
DragonFly) ;;
FreeBSD) default_cc=clang ;;
Haiku) default_cflags="-g -Wall" ;;
Haiku) default_cflags="-g -Wall -Werror" ;;
Linux) default_lflags="-lrt" ;;
NetBSD) default_lflags="-lrt" ;;
OpenBSD) default_cc=clang ;;
Expand Down

0 comments on commit b5a301c

Please sign in to comment.