mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-08-11 17:19:24 +02:00
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`
This commit is contained in:
parent
822cbbbc8b
commit
3197b1e25b
@ -50,6 +50,8 @@ ARCH := -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE
|
|||||||
CFLAGS := -g -Wall -O2 -ffunction-sections \
|
CFLAGS := -g -Wall -O2 -ffunction-sections \
|
||||||
$(ARCH) $(DEFINES)
|
$(ARCH) $(DEFINES)
|
||||||
|
|
||||||
|
CFLAGS += -Wno-misleading-indentation -Wno-use-after-free -Wno-unused-function
|
||||||
|
|
||||||
CFLAGS += $(INCLUDE) -D__SWITCH__
|
CFLAGS += $(INCLUDE) -D__SWITCH__
|
||||||
|
|
||||||
CXXFLAGS := $(CFLAGS) -std=gnu++17 -fno-exceptions -fno-rtti
|
CXXFLAGS := $(CFLAGS) -std=gnu++17 -fno-exceptions -fno-rtti
|
||||||
|
Loading…
Reference in New Issue
Block a user