From: Junio C Hamano Date: Sat, 31 Oct 2020 22:22:08 GMT Subject: [PATCH] Makefile: enable -Wsparse-error for DEVELOPER build Message-ID: In-Reply-To: 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(+) diff --git c/config.mak.dev w/config.mak.dev index 3126a5364d..022fb58218 100644 --- c/config.mak.dev +++ w/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