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>
pull/411/head
Kevin Thibedeau 3 years ago committed by GitHub
parent 1ec7e50722
commit cd0b7fc271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -111,6 +111,7 @@ static void prvSuspendSelf( Thread_t * thread);
static void prvResumeThread( Thread_t * xThreadId ); static void prvResumeThread( Thread_t * xThreadId );
static void vPortSystemTickHandler( int sig ); static void vPortSystemTickHandler( int sig );
static void vPortStartFirstTask( void ); static void vPortStartFirstTask( void );
static void prvPortYieldFromISR( void );
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
static void prvFatalError( const char *pcCall, int iErrno ) 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 *xThreadToSuspend;
Thread_t *xThreadToResume; Thread_t *xThreadToResume;
@ -286,7 +287,7 @@ void vPortYield( void )
{ {
vPortEnterCritical(); vPortEnterCritical();
vPortYieldFromISR(); prvPortYieldFromISR();
vPortExitCritical(); vPortExitCritical();
} }

@ -39,7 +39,7 @@ struct event
bool event_triggered; bool event_triggered;
}; };
struct event * event_create() struct event * event_create( void )
{ {
struct event * ev = malloc( sizeof( struct event ) ); struct event * ev = malloc( sizeof( struct event ) );

@ -34,7 +34,7 @@
struct event; struct event;
struct event * event_create(); struct event * event_create( void );
void event_delete( struct event * ); void event_delete( struct event * );
bool event_wait( struct event * ev ); bool event_wait( struct event * ev );
bool event_wait_timed( struct event * ev, bool event_wait_timed( struct event * ev,

Loading…
Cancel
Save