Disable gcc 11 false positives

This commit is contained in:
TuxSH 2021-04-30 19:08:50 +01:00
parent 50c81f8165
commit 99a2b8e3b2
3 changed files with 6 additions and 3 deletions

View File

@ -55,9 +55,10 @@ INCLUDES := include
ARCH := -marm -march=armv5te -mtune=arm946e-s
DEFINES := -DARM9 -D_3DS
FALSEPOSITIVES := -Wno-array-bounds -Wno-stringop-overflow -Wno-stringop-overread
CFLAGS := -g -std=gnu11 -Wall -Wextra -Werror -O2 -mword-relocations \
-fomit-frame-pointer -ffunction-sections -fdata-sections \
-Wno-main $(ARCH) $(DEFINES)
-Wno-main $(FALSEPOSITIVES) $(ARCH) $(DEFINES)
CFLAGS += $(INCLUDE)

View File

@ -28,9 +28,10 @@ INCLUDES := include include/svc
ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft
DEFINES := -DARM11 -D_3DS
FALSEPOSITIVES := -Wno-array-bounds -Wno-stringop-overflow -Wno-stringop-overread
CFLAGS := -g -std=gnu11 -Wall -Wextra -Werror -O2 -mword-relocations \
-fomit-frame-pointer -ffunction-sections -fdata-sections \
-Wno-main $(ARCH) $(DEFINES)
-Wno-main $(FALSEPOSITIVES) $(ARCH) $(DEFINES)
CFLAGS += $(INCLUDE)

View File

@ -28,9 +28,10 @@ INCLUDES := include include/gdb include/menus include/redshift
ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft
DEFINES := -DARM11 -D_3DS
FALSEPOSITIVES := -Wno-array-bounds -Wno-stringop-overflow -Wno-stringop-overread
CFLAGS := -g -std=gnu11 -Wall -Wextra -Werror -Wno-unused-value -Os -mword-relocations \
-fomit-frame-pointer -ffunction-sections -fdata-sections -fno-math-errno \
$(ARCH) $(DEFINES)
$(FALSEPOSITIVES) $(ARCH) $(DEFINES)
CFLAGS += $(INCLUDE)