From 0dd14404e1722c433977627ccf89ba7fcdc21d4f Mon Sep 17 00:00:00 2001 From: Christoph Schnetzler Date: Fri, 28 Oct 2022 11:57:23 +0200 Subject: [PATCH] net: lwm2m: Prevent wundef warnings If -Werror is used compilation fails due to wundef warning. Signed-off-by: Christoph Schnetzler --- subsys/net/lib/lwm2m/lwm2m_engine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/net/lib/lwm2m/lwm2m_engine.h b/subsys/net/lib/lwm2m/lwm2m_engine.h index 7a2cc7b9a9e1e9..251ba8a32c9a15 100644 --- a/subsys/net/lib/lwm2m/lwm2m_engine.h +++ b/subsys/net/lib/lwm2m/lwm2m_engine.h @@ -14,7 +14,7 @@ #include "lwm2m_registry.h" #define LWM2M_PROTOCOL_VERSION_MAJOR 1 -#if CONFIG_LWM2M_VERSION_1_1 +#if defined(CONFIG_LWM2M_VERSION_1_1) #define LWM2M_PROTOCOL_VERSION_MINOR 1 #else #define LWM2M_PROTOCOL_VERSION_MINOR 0