From c7ecfb91113c0e43d59478511234e3df376ee33d Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 12 Jan 2009 13:20:53 +0100 Subject: [PATCH] Make CFLAGS more strict This is a gcc-ism, but as we use gcc exclusively, we can use them. Taken from one of Junio's mails. (Reminded to cherry-pick this patch by one of Karsten Blees' mails.) Signed-off-by: Johannes Schindelin --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 073c3f67e6..c7c90e5f33 100644 --- a/Makefile +++ b/Makefile @@ -308,7 +308,10 @@ endif # CFLAGS and LDFLAGS are for the users to override from the command line. -CFLAGS = -g -O2 -Wall +CFLAGS = -g -O2 -Wall -Werror \ + -Wno-pointer-to-int-cast \ + -Wold-style-definition \ + -Wdeclaration-after-statement LDFLAGS = ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS) ALL_LDFLAGS = $(LDFLAGS)