From 7138dbbc3dfc055cc9cba7f474b498e2d0612131 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 05d241bc12..837672366f 100644 --- a/Makefile +++ b/Makefile @@ -345,7 +345,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)