Skip to content

Commit 6273c4f

Browse files
authored
fix(freertos_stats): remove volatile c++ 20 deprecated warning (#11158)
1 parent cc2632b commit 6273c4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cores/esp32/freertos_stats.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ void printRunningTasks(Print &printer) {
3131
#endif
3232
configRUN_TIME_COUNTER_TYPE ulTotalRunTime = 0;
3333
TaskStatus_t *pxTaskStatusArray = NULL;
34-
volatile UBaseType_t uxArraySize = 0, x = 0;
34+
volatile UBaseType_t uxArraySize = 0;
35+
uint32_t x = 0;
3536
const char *taskStates[] = {"Running", "Ready", "Blocked", "Suspended", "Deleted", "Invalid"};
3637

3738
// Take a snapshot of the number of tasks in case it changes while this function is executing.

0 commit comments

Comments
 (0)