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.
This commit is contained in:
Peter0x44 2024-06-17 12:10:36 -07:00
parent d1200a3956
commit 64270f1208

View file

@ -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__