Fix build in newer gcc
parent
b1da87a7a4
commit
23cf521698
|
@ -20,7 +20,8 @@ OPTIMIZATION = 1
|
|||
TARGET = Test
|
||||
SRC = $(TARGET).c
|
||||
LUFA_PATH = ../../LUFA
|
||||
CC_FLAGS = -Werror
|
||||
#CC_FLAGS = -Werror
|
||||
CC_FLAGS =
|
||||
DEBUG_LEVEL = 0
|
||||
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ endif
|
|||
|
||||
# Generic C/C++ compiler flags
|
||||
CC_FLAGS = -Wextra
|
||||
CC_FLAGS += -Werror
|
||||
#CC_FLAGS += -Werror
|
||||
CC_FLAGS += -Wformat=2
|
||||
CC_FLAGS += -Winit-self
|
||||
CC_FLAGS += -Wswitch-enum
|
||||
|
|
|
@ -32,7 +32,7 @@ LUFA_PATH = ../../LUFA
|
|||
|
||||
# Generic C/C++ compiler flags
|
||||
CC_FLAGS = -Wextra
|
||||
CC_FLAGS += -Werror
|
||||
#CC_FLAGS += -Werror
|
||||
CC_FLAGS += -Wformat=2
|
||||
CC_FLAGS += -Winit-self
|
||||
CC_FLAGS += -Wswitch-enum
|
||||
|
|
|
@ -92,9 +92,9 @@ endif
|
|||
endif
|
||||
CFLAGS += -Wall
|
||||
CFLAGS += -Wstrict-prototypes
|
||||
ifneq ($(strip $(ALLOW_WARNINGS)), yes)
|
||||
CFLAGS += -Werror
|
||||
endif
|
||||
#ifneq ($(strip $(ALLOW_WARNINGS)), yes)
|
||||
# CFLAGS += -Werror
|
||||
#endif
|
||||
#CFLAGS += -mshort-calls
|
||||
#CFLAGS += -fno-unit-at-a-time
|
||||
#CFLAGS += -Wundef
|
||||
|
@ -118,9 +118,9 @@ CPPFLAGS += -O$(OPT)
|
|||
CPPFLAGS += -w
|
||||
CPPFLAGS += -Wall
|
||||
CPPFLAGS += -Wundef
|
||||
ifneq ($(strip $(ALLOW_WARNINGS)), yes)
|
||||
CPPFLAGS += -Werror
|
||||
endif
|
||||
#ifneq ($(strip $(ALLOW_WARNINGS)), yes)
|
||||
# CPPFLAGS += -Werror
|
||||
#endif
|
||||
#CPPFLAGS += -mshort-calls
|
||||
#CPPFLAGS += -fno-unit-at-a-time
|
||||
#CPPFLAGS += -Wstrict-prototypes
|
||||
|
|
Loading…
Reference in New Issue