summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-09-22 22:08:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-09-27 20:54:02 (GMT)
commitdd20e4a6db0c5504f098f8e97eadf55b967056cd (patch)
treea77d9bd705c6501ccf69e11a0244267acacb0148 /Makefile
parent225bc32a989d7a22fa6addafd4ce7dcd04675dbf (diff)
downloadgit-dd20e4a6db0c5504f098f8e97eadf55b967056cd.zip
git-dd20e4a6db0c5504f098f8e97eadf55b967056cd.tar.gz
git-dd20e4a6db0c5504f098f8e97eadf55b967056cd.tar.bz2
Makefile: pass -Wno-pendantic under GENERATE_COMPILATION_DATABASE=yes
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9573190..e0fa1ba 100644
--- 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 $$?)