Skip to content

Commit

Permalink
to avoid compiling errors when gcc version >= 10
Browse files Browse the repository at this point in the history
to avoid compiling errors when gcc version >= 10
  • Loading branch information
ZZMarquis authored Jun 17, 2022
1 parent 4f02579 commit 6daadb0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@ endif
HOST_CFLAGS+= -DINET
CFLAGS+= -DINET

GCCVERGE10 = $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 10)
ifeq "$(GCCVERGE10)" "1"
CFLAGS+= -Wno-error=stringop-overflow
endif

GCCVERGE11 = $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 11)
ifeq "$(GCCVERGE11)" "1"
CFLAGS+= -Wno-error=stringop-overread
endif

ifdef FF_INET6
HOST_CFLAGS+= -DINET6
CFLAGS+= -DINET6
Expand Down

0 comments on commit 6daadb0

Please sign in to comment.