summaryrefslogtreecommitdiff
path: root/examples/host/msc_file_explorer
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-06-16 15:29:34 +0700
committerhathach <[email protected]>2023-06-16 15:29:34 +0700
commite754795d3adec4bc3a66a4131d0662d87acb4893 (patch)
tree281212f5852f6ce9d2a607aab3e0acea94c2e708 /examples/host/msc_file_explorer
parenta7f330fa94b7a39858f6d770737451b51f061c25 (diff)
fix build warnings
Diffstat (limited to 'examples/host/msc_file_explorer')
-rw-r--r--examples/host/msc_file_explorer/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/host/msc_file_explorer/CMakeLists.txt b/examples/host/msc_file_explorer/CMakeLists.txt
index 2d5600059..327d1218a 100644
--- a/examples/host/msc_file_explorer/CMakeLists.txt
+++ b/examples/host/msc_file_explorer/CMakeLists.txt
@@ -21,6 +21,13 @@ target_sources(${PROJECT} PUBLIC
${TOP}/lib/fatfs/source/ffunicode.c
)
+# Suppress warnings on fatfs
+set_source_files_properties(
+ ${TOP}/lib/fatfs/source/ff.c
+ PROPERTIES
+ COMPILE_FLAGS "-Wno-conversion -Wno-cast-qual"
+)
+
# Example include
target_include_directories(${PROJECT} PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/src