This is an automated email from the ASF dual-hosted git repository.
ligd pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new d6a530727 Fix nuttx/porttimer.c:71:24: error: a function declaration
without a prototype is deprecated
d6a530727 is described below
commit d6a5307270f3f3b38aef1534c8adfc5ecdea9521
Author: Xiang Xiao <[email protected]>
AuthorDate: Mon Dec 11 03:27:41 2023 +0800
Fix nuttx/porttimer.c:71:24: error: a function declaration without a
prototype is deprecated
Signed-off-by: Xiang Xiao <[email protected]>
---
modbus/nuttx/porttimer.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modbus/nuttx/porttimer.c b/modbus/nuttx/porttimer.c
index c3115868f..2a68654cf 100644
--- a/modbus/nuttx/porttimer.c
+++ b/modbus/nuttx/porttimer.c
@@ -68,12 +68,12 @@ bool xMBPortTimersInit(uint16_t usTim1Timerout50us)
return xMBPortSerialSetTimeout(ulTimeOut);
}
-void xMBPortTimersClose()
+void xMBPortTimersClose(void)
{
/* Does not use any hardware resources. */
}
-void vMBPortTimerPoll()
+void vMBPortTimerPoll(void)
{
uint32_t ulDeltaMS;
struct timeval xTimeCur;
@@ -101,7 +101,7 @@ void vMBPortTimerPoll()
}
}
-void vMBPortTimersEnable()
+void vMBPortTimersEnable(void)
{
int res = gettimeofday(&xTimeLast, NULL);
@@ -109,7 +109,7 @@ void vMBPortTimersEnable()
bTimeoutEnable = true;
}
-void vMBPortTimersDisable()
+void vMBPortTimersDisable(void)
{
bTimeoutEnable = false;
}