Code: Select all
warning: unused variable 'ret' [-Wunused-variable]
warning: variable 'r' set but not used [-Wunused-but-set-variable]
Code: Select all
idf/tools/cmake/build.cmake
list(APPEND compile_options "-ffunction-sections"
"-fdata-sections"
"-fstrict-volatile-bitfields"
# warning-related flags
"-Wall"
"-Werror=all"
"-Wno-error=unused-function"
"-Wno-error=unused-but-set-variable"
"-Wno-error=unused-variable"
"-Wno-error=deprecated-declarations"
"-Wextra"
"-Wno-unused-parameter"
"-Wno-sign-compare"
# always generate debug symbols (even in release mode, these don't
# go into the final binary so have no impact on size
"-ggdb")
Is it possible to add to the MAKE command so that I can suppress all warnings that are not errors ??