Don't show warnings for release builds
This commit is contained in:
parent
446f85b05a
commit
9d0bb921b3
4
Makefile
4
Makefile
@ -37,15 +37,15 @@ CDEFS = -DF_CPU=1000000L -D__AVR__ -D__AVR_ATmega328P__
|
||||
CINCS = -I $(INC_DIR)
|
||||
|
||||
CDEBUG = -g$(DEBUG)
|
||||
CWARN = -Wall -Wextra -Wstrict-prototypes
|
||||
CTUNING = -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
|
||||
#CEXTRA = -Wa,-adhlns=$(<:.c=.lst)
|
||||
CFLAGS = $(CDEBUG) $(CDEFS) $(CINCS) -O$(OPT) $(CWARN) $(CSTANDARD) $(CEXTRA)
|
||||
CFLAGS = $(CDEBUG) $(CDEFS) $(CINCS) -O$(OPT) $(CSTANDARD) $(CEXTRA)
|
||||
|
||||
#ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs
|
||||
|
||||
ifeq ($(BUILD),debug)
|
||||
CFLAGS += -DDEBUG
|
||||
CFLAGS += -Wall -Wextra -Wstrict-prototypes
|
||||
endif
|
||||
|
||||
#Additional libraries.
|
||||
|
Loading…
Reference in New Issue
Block a user