From 38d9fdee687ad3c09d4392b419a0f00a0f4afbc4 Mon Sep 17 00:00:00 2001 From: fengbojiang Date: Sat, 12 Oct 2024 20:23:04 +0800 Subject: [PATCH] Fix a build error with gcc-13.2.0. --- lib/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/Makefile b/lib/Makefile index 109865d47..50a902d55 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -114,15 +114,20 @@ HOST_CFLAGS+= -DINET CFLAGS+= -DINET GCCVERGE10 = $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 10) -ifeq "$(GCCVERGE10)" "1" +ifeq "$(GCCVERGE10)" "1" CFLAGS+= -Wno-error=stringop-overflow endif GCCVERGE11 = $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 11) -ifeq "$(GCCVERGE11)" "1" +ifeq "$(GCCVERGE11)" "1" CFLAGS+= -Wno-error=stringop-overread endif +GCCVERGE13 = $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 13) +ifeq "$(GCCVERGE13)" "1" + CFLAGS+= -Wno-error=dangling-pointer +endif + ifdef FF_INET6 HOST_CFLAGS+= -DINET6 CFLAGS+= -DINET6