PocketTRS icon indicating copy to clipboard operation
PocketTRS copied to clipboard

Build failes because warning are treated as errors

Open magore opened this issue 3 years ago • 0 comments

../components/trs-lib/window.c:6:22: error: 'scroll_increment' defined but not used [-Werror=unused-const-variable=] static const uint8_t scroll_increment = 5; ^~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors [937/1087] Building CXX object esp-idf/FabGL/CMakeFiles/__idf_FabGL.dir/src/fabui.cpp.obj ninja: build stopped: subcommand failed. ninja failed with exit code 1

You might want to add options to CMakeLists.txt to ignore the errors such as: idf_build_set_property(COMPILE_OPTIONS "-Wno-error" APPEND) idf_build_set_property(COMPILE_OPTIONS "-Wno-error=unused-const-variable=" APPEND)

magore avatar Jul 27 '21 03:07 magore