mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Remove empty expression statement compiler warning (#692)
* Add do while( 0 ) loop for empty expression statement compiler warning
This commit is contained in:
parent
1c5eca348f
commit
d0a490e491
6 changed files with 28 additions and 26 deletions
4
tasks.c
4
tasks.c
|
@ -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 */
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue