mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-09-02 15:45:44 +00: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
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue