dev: add -Wextra in Makefile and clean warnings
This commit is contained in:
parent
9264c47494
commit
6592ec43fd
5 changed files with 10 additions and 3 deletions
2
Makefile
2
Makefile
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue