bootstrap: Ratchet up compiler strictness
Replace the specific warning flags with -Wall -Wextra and turn on
-Werror.
Covered by -Wall:
* -Wformat
* -Warray-bounds
* -Wimplicit-function-declaration
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Iab21e67026d2453648aa6ebe4c299e1162fc5ebf
diff --git a/bootstrap.sh b/bootstrap.sh
index f154ad9..304aca3 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -14,9 +14,11 @@
case "${BOOTSTRAP_MODE}" in
dev)
- FLAGS="-Wformat -Werror=format-security"
- FLAGS="${FLAGS} -Werror=array-bounds"
- FLAGS="${FLAGS} -Werror=implicit-function-declaration"
+ FLAGS="-O2 -Wall -Wextra -Wformat-security"
+ FLAGS="${FLAGS} -Wparentheses"
+ FLAGS="${FLAGS} -Wno-type-limits"
+ FLAGS="${FLAGS} -Werror"
+ # FLAGS="${FLAGS} -Wpedantic"
FLAGS="${FLAGS} -fsanitize=address,leak,undefined"
FLAGS="${FLAGS} -ggdb"
./configure \