Suppress new GCC 12 warning (#842)

This commit is contained in:
Graham Sanderson
2022-06-20 09:52:25 -05:00
committed by GitHub
parent b3c56e7169
commit 9644399993
4 changed files with 35 additions and 25 deletions

View File

@ -336,7 +336,10 @@ uint8_t rp2040_chip_version(void);
* @return the RP2040 rom version number (1 for RP2040-B0, 2 for RP2040-B1, 3 for RP2040-B2)
*/
static inline uint8_t rp2040_rom_version(void) {
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
return *(uint8_t*)0x13;
#pragma GCC diagnostic pop
}
/*! \brief No-op function for the body of tight loops