Errors in esp_log while Compiling
Posted: Thu Jun 27, 2024 2:22 pm
Hello,
I am using esp-idf extension on VsCode and was able to flash my board using the blink example. However, now, using a different code, I am getting errors in esp_log.h:
C:/Espressif/esp-idf-v5.2.2/components/log/include/esp_log.h:291:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
291 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
I am getting multiple format errors. Why would this be happening? Since these are libraries provided by ESP.
Is there a way I can remove "-Werror=format=" flag? Should I?
I am using esp-idf extension on VsCode and was able to flash my board using the blink example. However, now, using a different code, I am getting errors in esp_log.h:
C:/Espressif/esp-idf-v5.2.2/components/log/include/esp_log.h:291:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
291 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
I am getting multiple format errors. Why would this be happening? Since these are libraries provided by ESP.
Is there a way I can remove "-Werror=format=" flag? Should I?