RP@040: rework CMake for compiler warnings

This commit is contained in:
graham sanderson
2022-07-12 12:58:30 -05:00
parent 1a8c3a863b
commit fc1a27b6c9
27 changed files with 85 additions and 132 deletions

View File

@@ -60,7 +60,9 @@ void rp2040_usb_init(void)
// Clear any previous state just in case
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
#if __GNUC__ > 6
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#endif
memset(usb_hw, 0, sizeof(*usb_hw));
memset(usb_dpram, 0, sizeof(*usb_dpram));
#pragma GCC diagnostic pop