1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:32:45 +01:00

llvm: cpu/stm32: Fix unused function warning

This commit is contained in:
Teufelchen1 2022-11-10 14:24:11 +01:00
parent 3aaea1a74e
commit d19182c3e6

View File

@ -161,6 +161,7 @@ static void _gpio_init_ain(void)
* This very teniously avoids optimization, even optimized it's better than * This very teniously avoids optimization, even optimized it's better than
* nothing but periodic review should establish that it doesn't get optimized. * nothing but periodic review should establish that it doesn't get optimized.
*/ */
MAYBE_UNUSED
__attribute__((always_inline)) __attribute__((always_inline))
static inline uint32_t _multi_read_reg32(volatile uint32_t *addr, bool *glitch) static inline uint32_t _multi_read_reg32(volatile uint32_t *addr, bool *glitch)
{ {