From b4fc04078337d0993d6eb34406986fcd442d4fff Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 4 Apr 2016 09:24:06 -0600 Subject: [PATCH] RTC: Fix some compile issues when RTC_ALARM is disabled --- arch/arm/src/stm32/stm32f40xxx_rtcc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/src/stm32/stm32f40xxx_rtcc.c b/arch/arm/src/stm32/stm32f40xxx_rtcc.c index c526674a27..ece81269c6 100644 --- a/arch/arm/src/stm32/stm32f40xxx_rtcc.c +++ b/arch/arm/src/stm32/stm32f40xxx_rtcc.c @@ -621,6 +621,7 @@ static void rtc_resume(void) * ************************************************************************************/ +#ifdef CONFIG_RTC_ALARM static int stm32_rtc_alarm_handler(int irq, void *context) { FAR struct alm_cbinfo_s *cbinfo; @@ -684,6 +685,7 @@ static int stm32_rtc_alarm_handler(int irq, void *context) return ret; } +#endif /************************************************************************************ * Name: rtchw_check_alrXwf X= a or B