From: Junio C Hamano Date: Sat, 31 Oct 2020 22:22:08 +0000 (-0700) Subject: Makefile: enable -Wsparse-error for DEVELOPER build X-Git-Tag: v2.30.0-rc0~75^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=521dc56270d6b4e3258175b6c521e16842acccf7;p=thirdparty%2Fgit.git 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 --- 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