From aef91917f7ae66da1e93e1f4c1b21f5b2555ad35 Mon Sep 17 00:00:00 2001 From: João Silva Date: Wed, 16 Aug 2017 17:59:11 +0100 Subject: Changed compile-time flags to use C89 and fixed new warnings raised. --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index fe0080b..7bacd49 100644 --- a/Makefile +++ b/Makefile @@ -246,6 +246,10 @@ else ifeq ($(NO_GCC), 1) else WARNINGS := \ -Wall \ + -Wextra \ + -pedantic \ + -Wno-implicit-function-declaration \ + -Wno-implicit-fallthrough \ -Wno-sign-compare \ -Wno-unused-variable \ -Wno-unused-function \ @@ -256,9 +260,9 @@ else endif ifeq ($(DEBUG),1) - FLAGS += -O0 -g + FLAGS += -O0 -g -std=c89 else - FLAGS += -O2 -DNDEBUG + FLAGS += -O2 -DNDEBUG -std=c89 endif ifeq ($(PERF_TEST),1) -- cgit v1.2.3