From 2a0d608b07487300a63908baa62e73a51a11e811 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Tue, 1 Jun 2021 18:06:22 +0200 Subject: [PATCH] hosted: Fix last commit -Wno-format-truncation may not be understood by all systems --- src/platforms/hosted/Makefile.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/hosted/Makefile.inc b/src/platforms/hosted/Makefile.inc index 4ac6ac2..cd0ce56 100644 --- a/src/platforms/hosted/Makefile.inc +++ b/src/platforms/hosted/Makefile.inc @@ -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)))