]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Makefile: enable -Wsparse-error for DEVELOPER build
authorJunio C Hamano <gitster@pobox.com>
Sat, 31 Oct 2020 22:22:08 +0000 (15:22 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 31 Oct 2020 22:24:40 +0000 (15:24 -0700)
With -Wsparse-error, "make sparse" would fail, instead of just
giving a warning message.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.mak.dev

index 89b218d11a5313f327492795964793bec8670160..05c56e4a0acac697a0ae6a215542160d67ffee95 100644 (file)
@@ -1,5 +1,6 @@
 ifeq ($(filter no-error,$(DEVOPTS)),)
 DEVELOPER_CFLAGS += -Werror
+SPARSE_FLAGS += -Wsparse-error
 endif
 ifneq ($(filter pedantic,$(DEVOPTS)),)
 DEVELOPER_CFLAGS += -pedantic