summary refs log tree commit diff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-04-17 16:32:05 -0700
committerJunio C Hamano <gitster@pobox.com>2022-04-17 16:32:05 -0700
commitdb4361bb298d6cd1e07c1219e2c190526dd24e86 (patch)
tree9e94fbbb8d1a74f61b4753c4c0b83c2418c8c230
parent4027e30c5395c9c1aeea85e99f51ac62f5148145 (diff)
parent9c539d1027df2a0f6e45b24d518e90d3baf1e7a5 (diff)
Merge branch 'cb/buggy-gcc-12-workaround'
A couple of work around for CI breaking warnings from gcc 12.

* cb/buggy-gcc-12-workaround:
  config.mak.dev: alternative workaround to gcc 12 warning in http.c
  config.mak.dev: workaround gcc 12 bug affecting "pedantic" CI job
-rw-r--r--config.mak.dev6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.mak.dev b/config.mak.dev
index 3deb076d5e..c3104f400b 100644
--- a/config.mak.dev
+++ b/config.mak.dev
@@ -65,4 +65,10 @@ DEVELOPER_CFLAGS += -Wno-uninitialized
 endif
 endif
 
+# https://bugzilla.redhat.com/show_bug.cgi?id=2075786
+ifneq ($(filter gcc12,$(COMPILER_FEATURES)),)
+DEVELOPER_CFLAGS += -Wno-error=stringop-overread
+DEVELOPER_CFLAGS += -Wno-error=dangling-pointer
+endif
+
 GIT_TEST_PERL_FATAL_WARNINGS = YesPlease