使用esp32进行开发,原使用IDF版本4.4.5,升级成为5.1.2后,出现有错误提示:
C:/Espressif/frameworks/esp-idf-v5.1.2/components/log/include/esp_log.h:265:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'long unsigned int' [-Werror=format=]
265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
据查这是cmake编译时出现的问题,可以通过调整编译控制进行屏蔽,想问下这个应该怎么屏蔽,对CMAKE不熟,求指教。