summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsulfurandcu <[email protected]>2023-12-19 16:08:51 +0800
committerMeco Man <[email protected]>2023-12-19 19:02:43 +0800
commitc84d7c5324a15f98ba5225ceb1abd5594228ac0b (patch)
treec8962597704ca2a22768306872f3a2c156f188e1
parent5dd87bc7bb2fa36791359395602be9f06d218f1e (diff)
fix warning #1295-D Deprecated declaration
-rw-r--r--components/drivers/include/drivers/rtc.h2
-rw-r--r--components/drivers/rtc/soft_rtc.c2
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;