]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Makefile: pass -Wno-pendantic under GENERATE_COMPILATION_DATABASE=yes
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 22 Sep 2021 22:08:02 +0000 (00:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Sep 2021 20:54:02 +0000 (13:54 -0700)
The same bug fixed in the "COMPUTE_HEADER_DEPENDENCIES=auto" mode in
the preceding commit was also present with
"GENERATE_COMPILATION_DATABASE=yes". Let's fix it so it works again
with "DEVOPTS=1".

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile

index 9573190f1d7e0360c11c597532504cb29758cbec..e0fa1baa4b782bde64a94d70466d938c0483332a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1310,6 +1310,7 @@ endif
 
 ifeq ($(GENERATE_COMPILATION_DATABASE),yes)
 compdb_check = $(shell $(CC) $(ALL_CFLAGS) \
+       -Wno-pedantic \
        -c -MJ /dev/null \
        -x c /dev/null -o /dev/null 2>&1; \
        echo $$?)