diff options
| author | Ha Thach <[email protected]> | 2022-07-14 21:53:34 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-07-14 21:53:34 +0700 |
| commit | 868f2bcda092b0b8d5f7ac55ffaef2c81316d35e (patch) | |
| tree | 3ed2212ab6057783b3d60672f6d1ff688dc62064 /src/portable/raspberrypi | |
| parent | 1a8c3a863bb1d172364ffe80029620fa75efc7a4 (diff) | |
| parent | 7e4c0f64cd32ee0c73da37703dda2f83ed760132 (diff) | |
Merge pull request #1554 from kilograham/rp2040_warning2
Rework CMake example warnings some more
Diffstat (limited to 'src/portable/raspberrypi')
| -rw-r--r-- | src/portable/raspberrypi/rp2040/rp2040_usb.c | 2 |
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 |
