mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-06 06:04:33 +02:00
freertos: Fix clang-tidy warning on pxPortInitialiseStack()
This commit is contained in:
@@ -537,6 +537,11 @@ FORCE_INLINE_ATTR UBaseType_t uxInitialiseStackFrame(UBaseType_t uxStackPointer,
|
||||
|
||||
StackType_t *pxPortInitialiseStack(StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters)
|
||||
{
|
||||
#ifdef __clang_analyzer__
|
||||
// Teach clang-tidy that pxTopOfStack cannot be a pointer to const
|
||||
volatile StackType_t * pxTemp = pxTopOfStack;
|
||||
pxTopOfStack = pxTemp;
|
||||
#endif /*__clang_analyzer__ */
|
||||
/*
|
||||
HIGH ADDRESS
|
||||
|---------------------------| <- pxTopOfStack on entry
|
||||
|
@@ -684,6 +684,11 @@ StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
|
||||
void * pvParameters )
|
||||
#endif
|
||||
{
|
||||
#ifdef __clang_analyzer__
|
||||
// Teach clang-tidy that pxTopOfStack cannot be a pointer to const
|
||||
volatile StackType_t * pxTemp = pxTopOfStack;
|
||||
pxTopOfStack = pxTemp;
|
||||
#endif /*__clang_analyzer__ */
|
||||
/*
|
||||
HIGH ADDRESS
|
||||
|---------------------------| <- pxTopOfStack on entry
|
||||
|
@@ -274,6 +274,11 @@ FORCE_INLINE_ATTR UBaseType_t uxInitialiseStackFrame(UBaseType_t uxStackPointer,
|
||||
|
||||
StackType_t *pxPortInitialiseStack(StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters)
|
||||
{
|
||||
#ifdef __clang_analyzer__
|
||||
// Teach clang-tidy that pxTopOfStack cannot be a pointer to const
|
||||
volatile StackType_t * pxTemp = pxTopOfStack;
|
||||
pxTopOfStack = pxTemp;
|
||||
#endif /*__clang_analyzer__ */
|
||||
/*
|
||||
HIGH ADDRESS
|
||||
|---------------------------| <- pxTopOfStack on entry
|
||||
|
@@ -412,6 +412,11 @@ StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
|
||||
void * pvParameters )
|
||||
#endif
|
||||
{
|
||||
#ifdef __clang_analyzer__
|
||||
// Teach clang-tidy that pxTopOfStack cannot be a pointer to const
|
||||
volatile StackType_t * pxTemp = pxTopOfStack;
|
||||
pxTopOfStack = pxTemp;
|
||||
#endif /*__clang_analyzer__ */
|
||||
/*
|
||||
HIGH ADDRESS
|
||||
|---------------------------| <- pxTopOfStack on entry
|
||||
|
Reference in New Issue
Block a user