From c84d7c5324a15f98ba5225ceb1abd5594228ac0b Mon Sep 17 00:00:00 2001 From: sulfurandcu Date: Tue, 19 Dec 2023 16:08:51 +0800 Subject: [PATCH] fix warning #1295-D Deprecated declaration --- components/drivers/include/drivers/rtc.h | 2 +- components/drivers/rtc/soft_rtc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/drivers/include/drivers/rtc.h b/components/drivers/include/drivers/rtc.h index 9a9d9cefa3..cba0ff9149 100644 --- a/components/drivers/include/drivers/rtc.h +++ b/components/drivers/include/drivers/rtc.h @@ -71,7 +71,7 @@ rt_err_t set_timestamp(time_t timestamp); rt_err_t get_timestamp(time_t *timestamp); #ifdef RT_USING_SYSTEM_WORKQUEUE -rt_err_t rt_soft_rtc_sync(); +rt_err_t rt_soft_rtc_sync(void); rt_err_t rt_soft_rtc_set_source(const char *name); #endif diff --git a/components/drivers/rtc/soft_rtc.c b/components/drivers/rtc/soft_rtc.c index a5f70a20cb..0eab72ebe5 100644 --- a/components/drivers/rtc/soft_rtc.c +++ b/components/drivers/rtc/soft_rtc.c @@ -268,7 +268,7 @@ INIT_DEVICE_EXPORT(rt_soft_rtc_init); #ifdef RT_USING_SYSTEM_WORKQUEUE -rt_err_t rt_soft_rtc_sync() +rt_err_t rt_soft_rtc_sync(void) { time_t time = 0;