From ba9f88f18c222d9e74e483340ade4a420ad49f01 Mon Sep 17 00:00:00 2001
From: hathach <thach@tinyusb.org>
Date: Mon, 21 Nov 2022 12:33:31 +0700
Subject: [PATCH] suppress fatfs cast-qual

---
 examples/host/msc_file_explorer/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/examples/host/msc_file_explorer/Makefile b/examples/host/msc_file_explorer/Makefile
index b0f9959fc..de2f9c01c 100644
--- a/examples/host/msc_file_explorer/Makefile
+++ b/examples/host/msc_file_explorer/Makefile
@@ -22,6 +22,9 @@ SRC_C += \
   $(FATFS_PATH)/ffsystem.c \
   $(FATFS_PATH)/ffunicode.c \
 
+# suppress warning caused by fatfs
+CFLAGS += -Wno-error=cast-qual
+
 # TinyUSB Host Stack source
 SRC_C += \
 	src/class/cdc/cdc_host.c \