summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-11-18 13:32:53 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-11-18 13:32:54 -0800
commitdfbc63da03f584fd4f281dfaffc1cec50e076289 (patch)
treedc7abf060acbce6d1e065998ea45178de6f23d33
parentMerge branch 'pb/blame-funcname-range-userdiff' (diff)
parentMakefile: enable -Wsparse-error for DEVELOPER build (diff)
downloadtgif-dfbc63da03f584fd4f281dfaffc1cec50e076289.tar.xz
Merge branch 'jc/sparse-error-for-developer-build'
"make DEVELOPER=1 sparse" used to run sparse and let it emit warnings; now such warnings will cause an error. * jc/sparse-error-for-developer-build: Makefile: enable -Wsparse-error for DEVELOPER build
-rw-r--r--config.mak.dev1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.mak.dev b/config.mak.dev
index 3126a5364d..022fb58218 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