Skip to content

Commit 77d8086

Browse files
authored
Fix clang warning in croutine and stream buffer (#686)
* Fix document warning in croutine * Fix cast-qual warning in stream buffer
1 parent 80f6744 commit 77d8086

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/croutine.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ typedef void (* crCOROUTINE_CODE)( CoRoutineHandle_t,
5353
typedef struct corCoRoutineControlBlock
5454
{
5555
crCOROUTINE_CODE pxCoRoutineFunction;
56-
ListItem_t xGenericListItem; /*< List item used to place the CRCB in ready and blocked queues. */
57-
ListItem_t xEventListItem; /*< List item used to place the CRCB in event lists. */
58-
UBaseType_t uxPriority; /*< The priority of the co-routine in relation to other co-routines. */
59-
UBaseType_t uxIndex; /*< Used to distinguish between co-routines when multiple co-routines use the same co-routine function. */
60-
uint16_t uxState; /*< Used internally by the co-routine implementation. */
56+
ListItem_t xGenericListItem; /**< List item used to place the CRCB in ready and blocked queues. */
57+
ListItem_t xEventListItem; /**< List item used to place the CRCB in event lists. */
58+
UBaseType_t uxPriority; /**< The priority of the co-routine in relation to other co-routines. */
59+
UBaseType_t uxIndex; /**< Used to distinguish between co-routines when multiple co-routines use the same co-routine function. */
60+
uint16_t uxState; /**< Used internally by the co-routine implementation. */
6161
} CRCB_t; /* Co-routine control block. Note must be identical in size down to uxPriority with TCB_t. */
6262

6363
/**

stream_buffer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ static void prvInitialiseNewStreamBuffer( StreamBuffer_t * const pxStreamBuffer,
478478
StaticStreamBuffer_t ** ppxStaticStreamBuffer )
479479
{
480480
BaseType_t xReturn;
481-
const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
481+
StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
482482

483483
configASSERT( pxStreamBuffer );
484484
configASSERT( ppucStreamBufferStorageArea );

0 commit comments

Comments
 (0)