summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-02-23 12:55:13 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-02-23 12:55:13 +0200
commit8ab854ad168eeae80f1311fbfb43abb52a442f50 (patch)
tree08d53e36f9c6704a1a89d04c64e83478c7617b06 /Makefile
parent4750be2da326297830691c54adbab0a5dea14802 (diff)
Makefile: Add -Warray-bounds=2
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0848407..fb38610 100644
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,8 @@ bindir ?= /bin
MAKEFLAGS += --no-builtin-rules
# GCC 7: -Wstringop-overflow=, -Walloc-size-larger-than=, -Wduplicated-{branches,cond}
-WARNINGS := -Wall -Wextra -Wpedantic -Wformat=2 -Wstrict-aliasing=3 -Wstrict-overflow=3 -Wstack-usage=12500 \
- -Wfloat-equal -Wcast-align -Wpointer-arith -Wchar-subscripts
+WARNINGS := -Wall -Wextra -Wpedantic -Wformat=2 -Wstrict-aliasing=3 -Wstrict-overflow=5 -Wstack-usage=12500 \
+ -Wfloat-equal -Wcast-align -Wpointer-arith -Wchar-subscripts -Warray-bounds=2
override CFLAGS ?= -g
override CFLAGS += -std=c11 $(WARNINGS)