We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60a6fea commit 5a92779Copy full SHA for 5a92779
src/rp2_common/tinyusb/CMakeLists.txt
@@ -45,5 +45,13 @@ if (EXISTS ${PICO_TINYUSB_PATH}/${TINYUSB_TEST_PATH})
45
pico_add_impl_library(tinyusb_board)
46
target_link_libraries(tinyusb_board INTERFACE tinyusb_bsp)
47
48
+ # Override suppress_tinyusb_warnings to add suppression of (falsely) reported GCC 11.2 warnings
49
+ function(suppress_tinyusb_warnings)
50
+ _suppress_tinyusb_warnings()
51
+ set_source_files_properties(
52
+ ${PICO_TINYUSB_PATH}/src/portable/raspberrypi/rp2040/rp2040_usb.c
53
+ PROPERTIES
54
+ COMPILE_FLAGS "-Wno-stringop-overflow -Wno-array-bounds")
55
+ endfunction()
56
pico_promote_common_scope_vars()
57
endif()
0 commit comments