summaryrefslogtreecommitdiffstats
path: root/config.mak.dev
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-11-18 22:32:53 +0100
committerJunio C Hamano <gitster@pobox.com>2020-11-18 22:32:54 +0100
commitdfbc63da03f584fd4f281dfaffc1cec50e076289 (patch)
treedc7abf060acbce6d1e065998ea45178de6f23d33 /config.mak.dev
parentMerge branch 'pb/blame-funcname-range-userdiff' (diff)
parentMakefile: enable -Wsparse-error for DEVELOPER build (diff)
downloadgit-dfbc63da03f584fd4f281dfaffc1cec50e076289.tar.xz
git-dfbc63da03f584fd4f281dfaffc1cec50e076289.zip
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 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