Remove empty expression statement compiler warning (#692)

* Add do while( 0 ) loop for empty expression statement compiler warning
This commit is contained in:
chinglee-iot
2023-07-06 10:44:24 +08:00
committed by GitHub
parent 1c5eca348f
commit d0a490e491
6 changed files with 28 additions and 26 deletions

View File

@ -66,13 +66,13 @@
* used from within an ISR.
*/
#define prvAddCoRoutineToReadyQueue( pxCRCB ) \
{ \
do { \
if( ( pxCRCB )->uxPriority > uxTopCoRoutineReadyPriority ) \
{ \
uxTopCoRoutineReadyPriority = ( pxCRCB )->uxPriority; \
} \
vListInsertEnd( ( List_t * ) &( pxReadyCoRoutineLists[ ( pxCRCB )->uxPriority ] ), &( ( pxCRCB )->xGenericListItem ) ); \
}
} while( 0 )
/*
* Utility to ready all the lists used by the scheduler. This is called