Skip to content

Commit 75bd85e

Browse files
committed
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 <[email protected]>
1 parent b307d47 commit 75bd85e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,10 @@ endif
271271

272272
# CFLAGS and LDFLAGS are for the users to override from the command line.
273273

274-
CFLAGS = -g -O2 -Wall
274+
CFLAGS = -g -O2 -Wall -Werror \
275+
-Wno-pointer-to-int-cast \
276+
-Wold-style-definition \
277+
-Wdeclaration-after-statement
275278
LDFLAGS =
276279
ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS)
277280
ALL_LDFLAGS = $(LDFLAGS)

0 commit comments

Comments
 (0)