summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgraham sanderson <[email protected]>2022-06-17 12:54:28 -0500
committergraham sanderson <[email protected]>2022-06-17 12:54:28 -0500
commit2f7f3e604eb2641dd87a524ab282939bda6b3348 (patch)
treea34079463b3f21cdcec8b6fda5e7cbcb894d2c3c
parentd09d0b314777d57d9df9fdcd128887e98a8e22c5 (diff)
Re-add some warning suppression for rp2040
-rw-r--r--hw/bsp/rp2040/family.cmake21
1 files changed, 20 insertions, 1 deletions
diff --git a/hw/bsp/rp2040/family.cmake b/hw/bsp/rp2040/family.cmake
index df3a6a91e..ed7041e4e 100644
--- a/hw/bsp/rp2040/family.cmake
+++ b/hw/bsp/rp2040/family.cmake
@@ -232,6 +232,25 @@ if (NOT TARGET _rp2040_family_inclusion_marker)
# This method must be called from the project scope to suppress known warnings in TinyUSB source files
function(suppress_tinyusb_warnings)
- # there are currently no warnings to suppress, however this function must still exist
+ set_source_files_properties(
+ ${PICO_TINYUSB_PATH}/src/device/usbd.c
+ PROPERTIES
+ COMPILE_FLAGS "-Wno-conversion")
+ set_source_files_properties(
+ ${PICO_TINYUSB_PATH}/src/device/usbd_control.c
+ PROPERTIES
+ COMPILE_FLAGS "-Wno-conversion")
+ set_source_files_properties(
+ ${PICO_TINYUSB_PATH}/src/class/cdc/cdc_device.c
+ PROPERTIES
+ COMPILE_FLAGS "-Wno-conversion")
+ set_source_files_properties(
+ ${PICO_TINYUSB_PATH}/src/common/tusb_fifo.c
+ PROPERTIES
+ COMPILE_FLAGS "-Wno-conversion")
+ set_source_files_properties(
+ ${PICO_TINYUSB_PATH}/src/tusb.c
+ PROPERTIES
+ COMPILE_FLAGS "-Wno-conversion")
endfunction()
endif()