Skip to content

Commit

Permalink
Fix warnings in posix port (#544)
Browse files Browse the repository at this point in the history
Fixes warnings about unused parameters and variables when built with
`-Wall -Wextra`.
  • Loading branch information
archigup authored Aug 16, 2022
1 parent 48ad473 commit 992ff1b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion portable/ThirdParty/GCC/Posix/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ portBASE_TYPE xPortSetInterruptMask( void )

void vPortClearInterruptMask( portBASE_TYPE xMask )
{
( void ) xMask;
}
/*-----------------------------------------------------------*/

Expand Down Expand Up @@ -385,6 +386,8 @@ static void vPortSystemTickHandler( int sig )
Thread_t * pxThreadToSuspend;
Thread_t * pxThreadToResume;

( void ) sig;

/* uint64_t xExpectedTicks; */

uxCriticalNesting++; /* Signals are blocked in this signal handler. */
Expand Down Expand Up @@ -425,6 +428,8 @@ void vPortThreadDying( void * pxTaskToDelete,
{
Thread_t * pxThread = prvGetThreadFromTask( pxTaskToDelete );

( void ) pxPendYield;

pxThread->xDying = pdTRUE;
}

Expand Down Expand Up @@ -526,7 +531,7 @@ static void prvResumeThread( Thread_t * xThreadId )

static void prvSetupSignalsAndSchedulerPolicy( void )
{
struct sigaction sigresume, sigtick;
struct sigaction sigtick;
int iRet;

hMainThread = pthread_self();
Expand Down

0 comments on commit 992ff1b

Please sign in to comment.