diff options
author | Monika Singh <108652024+moninom1@users.noreply.github.com> | 2022-08-19 13:21:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-19 13:21:57 +0300 |
commit | 11c72bc075b49bfdeb73d7e4bd94fd5a7d0a5e77 (patch) | |
tree | 186397d65006052628bb4af7709749f591325889 /croutine.c | |
parent | 992ff1bb50aeffd3f637b86e1869033861a30ac6 (diff) |
Add support for MISRA rule 20.7 (#546)
Misra rule 20.7 requires parenthesis to all parameter names
in macro definitions.
The issue was reported here : https://forums.freertos.org/t/misra-20-7-compatibility/15385
Diffstat (limited to 'croutine.c')
-rw-r--r-- | croutine.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/croutine.c b/croutine.c index 27ef603c2..a17475aa6 100644 --- a/croutine.c +++ b/croutine.c @@ -65,13 +65,13 @@ * This macro accesses the co-routine ready lists and therefore must not be
* used from within an ISR.
*/
- #define prvAddCoRoutineToReadyQueue( pxCRCB ) \
- { \
- if( pxCRCB->uxPriority > uxTopCoRoutineReadyPriority ) \
- { \
- uxTopCoRoutineReadyPriority = pxCRCB->uxPriority; \
- } \
- vListInsertEnd( ( List_t * ) &( pxReadyCoRoutineLists[ pxCRCB->uxPriority ] ), &( pxCRCB->xGenericListItem ) ); \
+ #define prvAddCoRoutineToReadyQueue( pxCRCB ) \
+ { \
+ if( ( pxCRCB )->uxPriority > uxTopCoRoutineReadyPriority ) \
+ { \
+ uxTopCoRoutineReadyPriority = ( pxCRCB )->uxPriority; \
+ } \
+ vListInsertEnd( ( List_t * ) &( pxReadyCoRoutineLists[ ( pxCRCB )->uxPriority ] ), &( ( pxCRCB )->xGenericListItem ) ); \
}
/*
|