Don't show warnings for release builds

This commit is contained in:
Rihards Skuja 2018-01-02 14:33:15 +02:00
parent 446f85b05a
commit 9d0bb921b3
No known key found for this signature in database
GPG Key ID: 53FA13A3F7F8571B

View File

@ -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.