From 94ce3cb2e3a08a394a7e236ec6edf3f1eeceffd0 Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Tue, 26 Jul 2016 13:15:32 +0100 Subject: [PATCH] Enforce a stricter, wider, cflags set by default This will ensure that more compilation issues will be detected in future development, ensuring a clean codebase. Signed-off-by: Ikey Doherty --- Makefile.am | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index a16ff48..f486ee1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,10 +3,13 @@ SUBDIRS = . tests ACLOCAL_AMFLAGS=-I m4 AM_CPPFLAGS = -I $(top_srcdir)/src -I $(top_srcdir)/src/interpreters -I $(top_srcdir)/src/datasources -AM_CFLAGS = -std=gnu99 -fstack-protector -Wall -pedantic \ - -Wstrict-prototypes -Wundef -fno-common \ - -Wformat -Wformat-security \ - -Wconversion -Wunused-variable -Wunreachable-code +AM_CFLAGS = \ + -fstack-protector -Wall -pedantic \ + -Wstrict-prototypes -Wundef -fno-common \ + -Werror-implicit-function-declaration \ + -Wformat -Wformat-security -Werror=format-security \ + -Wconversion -Wunused-variable -Wunreachable-code \ + -Wall -W -std=gnu99 EXTRA_DIST = \ LICENSE \