]> git.ipfire.org Git - thirdparty/git.git/commitdiff
config.mak.dev: alternative workaround to gcc 12 warning in http.c
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Fri, 15 Apr 2022 23:13:42 +0000 (16:13 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Apr 2022 23:27:04 +0000 (16:27 -0700)
This provides a "no code change needed" option to the "fix" currently
queued as part of ab/http-gcc-12-workaround and therefore should be
reverted once that gets merged.

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.mak.dev

index 335efd4620301a3927a0134df9019b7053ebf1d0..c3104f400b2303fffb7ad21a33853654210ac306 100644 (file)
@@ -68,6 +68,7 @@ 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