Set C compiler options -Wextra -std=gnu99

This commit is contained in:
Lassi Kortela 2019-08-09 19:50:21 +03:00
parent 45a7ec7bc4
commit 7d93f262a7
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,8 @@
#!/bin/sh
set -eu
CC="${CC:-clang}"
CFLAGS="-O2 -falign-functions -Wall -Wno-strict-aliasing"
CFLAGS="-Wall -Wextra -Wno-strict-aliasing -std=gnu99"
CFLAGS="$CFLAGS -O2 -falign-functions"
CFLAGS="$CFLAGS -I ../c -D NDEBUG -D USE_COMPUTED_GOTO"
LFLAGS="-lm"
builddir="build-$(uname | tr A-Z- a-z_)-$(uname -m | tr A-Z- a-z_)"