From 8ab854ad168eeae80f1311fbfb43abb52a442f50 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Fri, 23 Feb 2018 12:55:13 +0200 Subject: Makefile: Add -Warray-bounds=2 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3