Skip to content

Fix nuttx/porttimer.c:71:24: error: a function declaration without a prototype is deprecated #2227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions modbus/nuttx/porttimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -101,15 +101,15 @@ void vMBPortTimerPoll()
}
}

void vMBPortTimersEnable()
void vMBPortTimersEnable(void)
{
int res = gettimeofday(&xTimeLast, NULL);

DEBUGASSERT(res == 0);
bTimeoutEnable = true;
}

void vMBPortTimersDisable()
void vMBPortTimersDisable(void)
{
bTimeoutEnable = false;
}