[prev in list] [next in list] [prev in thread] [next in thread]
List: git
Subject: [PATCH] Makefile: enable -Wsparse-error for DEVELOPER build
From: Junio C Hamano <gitster () pobox ! com>
Date: 2020-10-31 22:22:08
Message-ID: xmqqsg9uxchb.fsf () gitster ! c ! googlers ! com
[Download RAW message or body]
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 | 1 +
1 file changed, 1 insertion(+)
diff --git c/config.mak.dev w/config.mak.dev
index 3126a5364d..022fb58218 100644
--- c/config.mak.dev
+++ w/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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic