summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgraham sanderson <[email protected]>2022-07-12 12:58:30 -0500
committergraham sanderson <[email protected]>2022-07-12 12:58:30 -0500
commitfc1a27b6c9d5a19529d6ac968164f2734ea89023 (patch)
tree437513c22237247b4c78e2ebb9e393434cab8f78 /src
parent1a8c3a863bb1d172364ffe80029620fa75efc7a4 (diff)
RP@040: rework CMake for compiler warnings
Diffstat (limited to 'src')
-rw-r--r--src/portable/raspberrypi/rp2040/rp2040_usb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/portable/raspberrypi/rp2040/rp2040_usb.c b/src/portable/raspberrypi/rp2040/rp2040_usb.c
index 49be90167..25c013bd2 100644
--- a/src/portable/raspberrypi/rp2040/rp2040_usb.c
+++ b/src/portable/raspberrypi/rp2040/rp2040_usb.c
@@ -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