dev: add -Wextra in Makefile and clean warnings

This commit is contained in:
Zy 2024-10-12 19:48:10 +02:00
parent 9264c47494
commit 6592ec43fd
5 changed files with 10 additions and 3 deletions

View file

@ -62,7 +62,7 @@ RSF := $(TOPDIR)/$(RESOURCES)/template.rsf
# options for code generation
#---------------------------------------------------------------------------------
ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft
COMMON := -Wall -O2 -mword-relocations -fomit-frame-pointer -ffunction-sections $(ARCH) $(INCLUDE) -D__3DS__ $(FLAGS)
COMMON := -Wall -Wextra -O2 -mword-relocations -fomit-frame-pointer -ffunction-sections $(ARCH) $(INCLUDE) -D__3DS__ $(FLAGS)
CFLAGS := $(COMMON) -std=gnu99
CXXFLAGS := $(COMMON) -fno-rtti -fno-exceptions -std=gnu++11
ASFLAGS := $(ARCH)