Makefile: enable -Wsparse-error for DEVELOPER build
With -Wsparse-error, "make sparse" would fail, instead of just giving a warning message. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
ifeq ($(filter no-error,$(DEVOPTS)),)
|
ifeq ($(filter no-error,$(DEVOPTS)),)
|
||||||
DEVELOPER_CFLAGS += -Werror
|
DEVELOPER_CFLAGS += -Werror
|
||||||
|
SPARSE_FLAGS += -Wsparse-error
|
||||||
endif
|
endif
|
||||||
ifneq ($(filter pedantic,$(DEVOPTS)),)
|
ifneq ($(filter pedantic,$(DEVOPTS)),)
|
||||||
DEVELOPER_CFLAGS += -pedantic
|
DEVELOPER_CFLAGS += -pedantic
|
||||||
|
|||||||
Reference in New Issue
Block a user