freertos: fix compilation warning at -O2 level
freertos: fix compilation warning at -O2 level

Closes https://github.com/espressif/esp-idf/issues/5525

espressif/esp-idf,espressif/esp-idf,espressif/esp-idf,espressif/esp-idf