mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-20 01:58:32 -04:00
Build with -Wmissing-prototypes flags vPortYieldFromISR() in the Posix port. (#409)
There's already a portYIELD_FROM_ISR() macro that calls vPortYield() which wraps the FromISR code. It doesn't appear that vPortYieldFromISR() is intended to be publicly accessible in this port so I've marked it as private to silence the warning. event_create() also got flagged due to missing void in prototype. Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
This commit is contained in:
parent
1ec7e50722
commit
cd0b7fc271
3 changed files with 5 additions and 4 deletions
5
portable/ThirdParty/GCC/Posix/port.c
vendored
5
portable/ThirdParty/GCC/Posix/port.c
vendored
|
@ -111,6 +111,7 @@ static void prvSuspendSelf( Thread_t * thread);
|
|||
static void prvResumeThread( Thread_t * xThreadId );
|
||||
static void vPortSystemTickHandler( int sig );
|
||||
static void vPortStartFirstTask( void );
|
||||
static void prvPortYieldFromISR( void );
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static void prvFatalError( const char *pcCall, int iErrno )
|
||||
|
@ -267,7 +268,7 @@ void vPortExitCritical( void )
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
void vPortYieldFromISR( void )
|
||||
static void prvPortYieldFromISR( void )
|
||||
{
|
||||
Thread_t *xThreadToSuspend;
|
||||
Thread_t *xThreadToResume;
|
||||
|
@ -286,7 +287,7 @@ void vPortYield( void )
|
|||
{
|
||||
vPortEnterCritical();
|
||||
|
||||
vPortYieldFromISR();
|
||||
prvPortYieldFromISR();
|
||||
|
||||
vPortExitCritical();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue