Skip to content

Commit f0763ab

Browse files
committed
temporarily turn off annoying gcc 11 warnings
1 parent 110eb06 commit f0763ab

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ INCLUDES := $(DEFINCS) -I$(BASEDIR)/gc/netif -I$(BASEDIR)/gc/ipv4 \
8484
-I$(BASEDIR)/gc/sdcard -I$(BASEDIR)/gc/wiiuse \
8585
-I$(BASEDIR)/gc/di
8686

87+
FALSE_POSITIVES := -Wno-array-bounds -Wno-stringop-overflow -Wno-stringop-overread
88+
8789
MACHDEP := -DBIGENDIAN -DGEKKO -mcpu=750 -meabi -msdata=eabi -mhard-float -ffunction-sections -fdata-sections
8890

8991

@@ -97,8 +99,8 @@ MACHDEP += -DHW_DOL
9799
INCLUDES += -I$(BASEDIR)/cube
98100
endif
99101

100-
CFLAGS := -DLIBOGC_INTERNAL -g -O2 -fno-strict-aliasing -Wall $(MACHDEP) $(INCLUDES)
101-
ASFLAGS := $(MACHDEP) -mregnames -D_LANGUAGE_ASSEMBLY $(INCLUDES)
102+
CFLAGS := $(FALSE_POSITIVES) -DLIBOGC_INTERNAL -g -O2 -fno-strict-aliasing -Wall $(MACHDEP) $(INCLUDES)
103+
ASFLAGS := $(MACHDEP) -mregnames -D_LANGUAGE_ASSEMBLY $(INCLUDES)
102104

103105
#---------------------------------------------------------------------------------
104106
VPATH := $(LWIPDIR) \

0 commit comments

Comments
 (0)