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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 28 additions and 26 deletions

View file

@ -124,12 +124,12 @@
/* uxTopReadyPriority holds the priority of the highest priority ready
* state task. */
#define taskRECORD_READY_PRIORITY( uxPriority ) \
{ \
do { \
if( ( uxPriority ) > uxTopReadyPriority ) \
{ \
uxTopReadyPriority = ( uxPriority ); \
} \
} /* taskRECORD_READY_PRIORITY */
} while( 0 ) /* taskRECORD_READY_PRIORITY */
/*-----------------------------------------------------------*/