From 99a2b8e3b2077d3b1d77087cacbd5e05de88da0c Mon Sep 17 00:00:00 2001 From: TuxSH <1922548+TuxSH@users.noreply.github.com> Date: Fri, 30 Apr 2021 19:08:50 +0100 Subject: [PATCH] Disable gcc 11 false positives --- arm9/Makefile | 3 ++- k11_extension/Makefile | 3 ++- sysmodules/rosalina/Makefile | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arm9/Makefile b/arm9/Makefile index d2c9c3a..ccf663b 100644 --- a/arm9/Makefile +++ b/arm9/Makefile @@ -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) diff --git a/k11_extension/Makefile b/k11_extension/Makefile index 8e179d1..fb8686c 100644 --- a/k11_extension/Makefile +++ b/k11_extension/Makefile @@ -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) diff --git a/sysmodules/rosalina/Makefile b/sysmodules/rosalina/Makefile index cf4ec44..d840c15 100644 --- a/sysmodules/rosalina/Makefile +++ b/sysmodules/rosalina/Makefile @@ -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)