263dab3eda
When DBG level for CONFIG_LWM2M_LOG_LEVEL is disabled, a compiler warning is generated: In file included from include/logging/log.h:11:0, from subsys/net/lib/lwm2m/lwm2m_engine.c:28: subsys/net/lib/lwm2m/lwm2m_engine.c: In function ‘engine_add_observer’: subsys/net/lib/lwm2m/lwm2m_engine.c:558:3: warning: implicit declaration of function ‘sprint_token’ [-Wimplicit-function-declaration] sprint_token(token, tkl), lwm2m_sprint_ip_addr(addr)); ^ Let's remove the #if guards around sprint_token() and let the Linker remove it when not needed. Signed-off-by: Michael Scott <mike@foundries.io> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.ipso | ||
ipso_light_control.c | ||
ipso_temp_sensor.c | ||
lwm2m_engine.c | ||
lwm2m_engine.h | ||
lwm2m_obj_device.c | ||
lwm2m_obj_firmware.c | ||
lwm2m_obj_firmware_pull.c | ||
lwm2m_obj_security.c | ||
lwm2m_obj_server.c | ||
lwm2m_object.h | ||
lwm2m_rd_client.c | ||
lwm2m_rd_client.h | ||
lwm2m_rw_json.c | ||
lwm2m_rw_json.h | ||
lwm2m_rw_oma_tlv.c | ||
lwm2m_rw_oma_tlv.h | ||
lwm2m_rw_plain_text.c | ||
lwm2m_rw_plain_text.h |