summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2022-07-14 21:53:34 +0700
committerGitHub <[email protected]>2022-07-14 21:53:34 +0700
commit868f2bcda092b0b8d5f7ac55ffaef2c81316d35e (patch)
tree3ed2212ab6057783b3d60672f6d1ff688dc62064 /src/portable
parent1a8c3a863bb1d172364ffe80029620fa75efc7a4 (diff)
parent7e4c0f64cd32ee0c73da37703dda2f83ed760132 (diff)
Merge pull request #1554 from kilograham/rp2040_warning2
Rework CMake example warnings some more
Diffstat (limited to 'src/portable')
-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