From 3197b1e25b841efd80ec6020498efda542a99011 Mon Sep 17 00:00:00 2001 From: comex Date: Fri, 8 Aug 2025 14:13:11 -0700 Subject: [PATCH] nanovg: disable some compiler warnings Disable all warnings seen on devkitA64 GCC 15.1.0: - Several false-positive `-Wmisleading-indentation` warnings (the indentation is not actually misleading) - One `-Wuse-after-free` warning, which looks alarming and represents very dubious design, but is ultimately harmless (a freed pointer is passed to a function that doesn't use it). - Some `-Wunused-function` warnings in `simd/neon.h` --- troposphere/daybreak/nanovg/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/troposphere/daybreak/nanovg/Makefile b/troposphere/daybreak/nanovg/Makefile index 48826c26f..d3363cdd8 100644 --- a/troposphere/daybreak/nanovg/Makefile +++ b/troposphere/daybreak/nanovg/Makefile @@ -50,6 +50,8 @@ ARCH := -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE CFLAGS := -g -Wall -O2 -ffunction-sections \ $(ARCH) $(DEFINES) +CFLAGS += -Wno-misleading-indentation -Wno-use-after-free -Wno-unused-function + CFLAGS += $(INCLUDE) -D__SWITCH__ CXXFLAGS := $(CFLAGS) -std=gnu++17 -fno-exceptions -fno-rtti