From 521dc56270d6b4e3258175b6c521e16842acccf7 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sat, 31 Oct 2020 15:22:08 -0700 Subject: Makefile: enable -Wsparse-error for DEVELOPER build With -Wsparse-error, "make sparse" would fail, instead of just giving a warning message. Signed-off-by: Junio C Hamano --- config.mak.dev | 1 + 1 file changed, 1 insertion(+) (limited to 'config.mak.dev') diff --git a/config.mak.dev b/config.mak.dev index 89b218d11a..05c56e4a0a 100644 --- a/config.mak.dev +++ b/config.mak.dev @@ -1,5 +1,6 @@ ifeq ($(filter no-error,$(DEVOPTS)),) DEVELOPER_CFLAGS += -Werror +SPARSE_FLAGS += -Wsparse-error endif ifneq ($(filter pedantic,$(DEVOPTS)),) DEVELOPER_CFLAGS += -pedantic -- cgit v1.2.3