Enable strict-overflow diagnostic
This commit is contained in:
parent
afc1c0e3bb
commit
c02602ace1
|
@ -198,7 +198,7 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Remove -Wno-stringop-overflow after we can test with CI's GCC 10. Mac's looks weird.
|
# Remove -Wno-stringop-overflow after we can test with CI's GCC 10. Mac's looks weird.
|
||||||
DISABLE_WARNINGS = -Wno-stringop-overflow -Wno-strict-overflow -Wno-cast-align
|
DISABLE_WARNINGS = -Wno-stringop-overflow -Wno-cast-align
|
||||||
|
|
||||||
CFLAGS += $(INC) -Wall -Werror -std=gnu11 -nostdlib -fshort-enums $(BASE_CFLAGS) $(CFLAGS_MOD) $(COPT) $(DISABLE_WARNINGS) -Werror=missing-prototypes
|
CFLAGS += $(INC) -Wall -Werror -std=gnu11 -nostdlib -fshort-enums $(BASE_CFLAGS) $(CFLAGS_MOD) $(COPT) $(DISABLE_WARNINGS) -Werror=missing-prototypes
|
||||||
|
|
||||||
|
@ -256,7 +256,7 @@ SRC_SDK := \
|
||||||
$(SRC_SDK_CYW43) \
|
$(SRC_SDK_CYW43) \
|
||||||
|
|
||||||
SRC_SDK := $(addprefix sdk/, $(SRC_SDK))
|
SRC_SDK := $(addprefix sdk/, $(SRC_SDK))
|
||||||
$(patsubst %.c,$(BUILD)/%.o,$(SRC_SDK) $(SRC_CYW43)): CFLAGS += -Wno-missing-prototypes -Wno-undef -Wno-unused-function -Wno-nested-externs -Wno-strict-prototypes -Wno-double-promotion -Wno-sign-compare -Wno-unused-variable
|
$(patsubst %.c,$(BUILD)/%.o,$(SRC_SDK) $(SRC_CYW43)): CFLAGS += -Wno-missing-prototypes -Wno-undef -Wno-unused-function -Wno-nested-externs -Wno-strict-prototypes -Wno-double-promotion -Wno-sign-compare -Wno-unused-variable -Wno-strict-overflow
|
||||||
|
|
||||||
SRC_C += \
|
SRC_C += \
|
||||||
boards/$(BOARD)/board.c \
|
boards/$(BOARD)/board.c \
|
||||||
|
|
Loading…
Reference in New Issue