From f4c5cf173d5effc3eeb94bb2d602f22cfdc66f66 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Fri, 19 May 2023 22:09:01 +0200 Subject: [PATCH] cpu/stm32: fix compilation with clang --- cpu/stm32/cpu_init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpu/stm32/cpu_init.c b/cpu/stm32/cpu_init.c index 9b2a1623bc..31ee24b2d6 100644 --- a/cpu/stm32/cpu_init.c +++ b/cpu/stm32/cpu_init.c @@ -397,6 +397,7 @@ void backup_ram_init(void) #define BACKUP_RAM_MAGIC {'R', 'I', 'O', 'T'} #endif +__attribute__((unused)) static inline bool _backup_battery_connected(void) { #if IS_USED(MODULE_PERIPH_VBAT) vbat_init(); /* early use of VBAT requires init() */