Fix a build error with gcc-13.2.0.

This commit is contained in:
fengbojiang 2024-10-12 20:23:04 +08:00
parent 7987a25bb9
commit 38d9fdee68
1 changed files with 7 additions and 2 deletions

View File

@ -123,6 +123,11 @@ 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