Suppress new GCC 12 warning (#842)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user