diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2018-04-14 19:19:46 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-04-16 13:54:53 +0900 |
commit | 26d2e4fb227c1415011a136fa9bb881ee338118a (patch) | |
tree | c57278dadabee498e50863e70790e81b592ae5c1 /Makefile | |
parent | 99f763baf5941455aefd176f9b1e98a4ff81f611 (diff) | |
download | git-26d2e4fb227c1415011a136fa9bb881ee338118a.tar.gz |
Makefile: add a DEVOPTS to get all of -Wextra
Change DEVOPTS to understand a "extra-all" option. When the DEVELOPER
flag is enabled we turn on -Wextra, but manually switch some of the
warnings it turns on off.
This is because we have many existing occurrences of them in the code
base. This mode will stop the suppression, let the developer see and
decide whether to fix them.
This change is a slight alteration of Nguyễn Thái Ngọc Duy
EAGER_DEVELOPER mode patch[1]
1. "[PATCH v3 3/3] Makefile: add EAGER_DEVELOPER
mode" (<20180329150322.10722-4-pclouds@gmail.com>;
https://public-inbox.org/git/20180329150322.10722-4-pclouds@gmail.com/)
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -445,6 +445,12 @@ all:: # suppresses the -Werror that implicitly comes with # DEVELOPER=1. Useful for getting the full set of errors # without immediately dying, or for logging them. +# +# extra-all: +# +# The DEVELOPER mode enables -Wextra with a few exceptions. By +# setting this flag the exceptions are removed, and all of +# -Wextra is used. GIT-VERSION-FILE: FORCE @$(SHELL_PATH) ./GIT-VERSION-GEN |