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;