diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-02-23 12:55:13 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-02-23 12:55:13 +0200 |
commit | 8ab854ad168eeae80f1311fbfb43abb52a442f50 (patch) | |
tree | 08d53e36f9c6704a1a89d04c64e83478c7617b06 | |
parent | 4750be2da326297830691c54adbab0a5dea14802 (diff) |
Makefile: Add -Warray-bounds=2
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |