Skip to content

Commit 8262a08

Browse files
authored
rom_hword_as_ptr should use __force_inline (#1494)
1 parent 8e16934 commit 8262a08

File tree

1 file changed

+1
-1
lines changed
  • src/rp2_common/pico_bootrom/include/pico

1 file changed

+1
-1
lines changed

src/rp2_common/pico_bootrom/include/pico/bootrom.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ typedef void *(*rom_table_lookup_fn)(uint16_t *table, uint32_t code);
118118

119119
#if PICO_C_COMPILER_IS_GNU && (__GNUC__ >= 12)
120120
// Convert a 16 bit pointer stored at the given rom address into a 32 bit pointer
121-
static inline void *rom_hword_as_ptr(uint16_t rom_address) {
121+
static __force_inline void *rom_hword_as_ptr(uint16_t rom_address) {
122122
#pragma GCC diagnostic push
123123
#pragma GCC diagnostic ignored "-Warray-bounds"
124124
return (void *)(uintptr_t)*(uint16_t *)(uintptr_t)rom_address;

0 commit comments

Comments
 (0)