From 64270f12084a3095d1872d1461dcc8d2d22cff1d Mon Sep 17 00:00:00 2001 From: Peter0x44 Date: Mon, 17 Jun 2024 12:10:36 -0700 Subject: [PATCH] NX: Downgrade GCC 14 errors to warnings https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors GCC 14 upgraded certain warnings about non-standard C features to errors. -fpermissive is the documented way to turn them back to warnings and allow the build to succeed. For our long term sanity, it would be better to resolve the warnings properly, but this will do for now. --- Makefile.nx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.nx b/Makefile.nx index d266a28..68ea25e 100644 --- a/Makefile.nx +++ b/Makefile.nx @@ -130,7 +130,7 @@ EXEFS_SRC := exefs_src #--------------------------------------------------------------------------------- ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -mcpu=cortex-a57+crc+fp+simd -CFLAGS := -g -Wall -O3 -fno-strict-aliasing -fomit-frame-pointer -ffunction-sections \ +CFLAGS := -g -fpermissive -Wall -O3 -fno-strict-aliasing -fomit-frame-pointer -ffunction-sections \ $(ARCH) $(DEFINES) CFLAGS += $(INCLUDE) -D__SWITCH__