summaryrefslogtreecommitdiff
path: root/config.mak.dev
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-11-18 21:32:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-11-18 21:32:54 (GMT)
commitdfbc63da03f584fd4f281dfaffc1cec50e076289 (patch)
treedc7abf060acbce6d1e065998ea45178de6f23d33 /config.mak.dev
parent3f6dc9c36693c2ba6dd5fb61fbad6b72cc08e3d1 (diff)
parent521dc56270d6b4e3258175b6c521e16842acccf7 (diff)
downloadgit-dfbc63da03f584fd4f281dfaffc1cec50e076289.zip
git-dfbc63da03f584fd4f281dfaffc1cec50e076289.tar.gz
git-dfbc63da03f584fd4f281dfaffc1cec50e076289.tar.bz2
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
Diffstat (limited to 'config.mak.dev')
-rw-r--r--config.mak.dev1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.mak.dev b/config.mak.dev
index 3126a53..022fb58 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