[PATCH 02/13] ltq-vdsl-app: fix -Wundef warnings

Andre Heider a.heider at gmail.com
Fri Dec 11 07:05:02 EST 2020


Shut up these warnings:

/usr/include/vdsl/cmv_message_format.h:33:6: warning: "MEI_SUPPORT_DEBUG_STREAMS" is not defined, evaluates to 0 [-Wundef]
 #if (MEI_SUPPORT_DEBUG_STREAMS == 1)
      ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vdsl/drv_mei_cpe_interface.h:2256:6: warning: "MEI_SUPPORT_OPTIMIZED_FW_DL" is not defined, evaluates to 0 [-Wundef]
 #if (MEI_SUPPORT_OPTIMIZED_FW_DL == 1)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Andre Heider <a.heider at gmail.com>
---
 package/network/config/ltq-vdsl-app/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/package/network/config/ltq-vdsl-app/Makefile b/package/network/config/ltq-vdsl-app/Makefile
index 5e2db1d5c6..ef81f7c8d7 100644
--- a/package/network/config/ltq-vdsl-app/Makefile
+++ b/package/network/config/ltq-vdsl-app/Makefile
@@ -35,6 +35,11 @@ define Package/ltq-vdsl-app/description
   Userland tool needed to control Lantiq VDSL CPE
 endef
 
+APPL_CFLAGS= \
+	-DMAX_CLI_PIPES=1 \
+	-DMEI_SUPPORT_DEBUG_STREAMS=0 \
+	-DMEI_SUPPORT_OPTIMIZED_FW_DL=0
+
 CONFIGURE_ARGS += \
 	--enable-vrx \
 	--enable-vrx-device=vr9 \
@@ -43,7 +48,7 @@ CONFIGURE_ARGS += \
 	--enable-ifxos \
 	--enable-ifxos-include="-I$(STAGING_DIR)/usr/include/ifxos" \
 	--enable-ifxos-library="-I$(STAGING_DIR)/usr/lib" \
-	--enable-add-appl-cflags="-DMAX_CLI_PIPES=1"  \
+	--enable-add-appl-cflags="$(APPL_CFLAGS)"  \
 	--enable-debug \
 	--disable-dti \
 	--with-channels-per-line="1" \
-- 
2.29.2




More information about the openwrt-devel mailing list