hosted: Fix last commit

-Wno-format-truncation may not be understood by all systems
This commit is contained in:
Uwe Bonnes 2021-06-01 18:06:22 +02:00 committed by UweBonnes
parent 1b49823f64
commit 2a0d608b07
1 changed files with 2 additions and 2 deletions

View File

@ -8,13 +8,13 @@ CFLAGS +=-I ./target -I./platforms/pc
# be useful to minimize external dependencies, and make building on
# windows systems easier.
HOSTED_BMP_ONLY ?= 0
CFLAGS += -DHOSTED_BMP_ONLY=$(HOSTED_BMP_ONLY) -Wno-format-truncation
CFLAGS += -DHOSTED_BMP_ONLY=$(HOSTED_BMP_ONLY)
ifneq (, $(findstring linux, $(SYS)))
SRC += serial_unix.c
HIDAPILIB = hidapi-libusb
ifeq ($(ASAN), 1)
CFLAGS += -fsanitize=address
CFLAGS += -fsanitize=address -Wno-format-truncation
LDFLAGS += -lasan
endif
else ifneq (, $(findstring mingw, $(SYS)))