mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-06 08:37:29 +02:00
core system: Fix warnings in compilation when assertions are disabled
Adds a CI config for hello world that sets this, to catch future regressions
This commit is contained in:
@@ -1,2 +1,7 @@
|
||||
idf_component_register(SRCS "protobuf-c/protobuf-c/protobuf-c.c"
|
||||
INCLUDE_DIRS protobuf-c)
|
||||
|
||||
if(CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE)
|
||||
# some variables are only used by asserts
|
||||
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-but-set-variable)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user