|
From: | Axel Lin |
Subject: | [lwip-devel] [patch #9495] apps/snmp: Fix buld error when LWIP_SNMP_CONFIGURE_VERSIONS=1 |
Date: | Sun, 19 Nov 2017 23:46:48 -0500 (EST) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 |
URL: <http://savannah.nongnu.org/patch/?9495> Summary: apps/snmp: Fix buld error when LWIP_SNMP_CONFIGURE_VERSIONS=1 Project: lwIP - A Lightweight TCP/IP stack Submitted by: axellin Submitted on: Mon 20 Nov 2017 04:46:47 AM UTC Category: None Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: None _______________________________________________________ Details: The version check is done in these functions, it should be ok to put assert in the else clause. Fix below build errors: ../../../../lwip/src/apps/snmp/snmp_msg.c: In function ‘snmp_version_enabled’: ../../../../lwip/src/apps/snmp/snmp_msg.c:87:1: error: embedding a directive within macro arguments is not portable [-Werror] #if LWIP_SNMP_V3 ^ ../../../../lwip/src/apps/snmp/snmp_msg.c:89:1: error: embedding a directive within macro arguments is not portable [-Werror] #endif ^ ../../../../lwip/src/apps/snmp/snmp_msg.c: In function ‘snmp_version_enable’: ../../../../lwip/src/apps/snmp/snmp_msg.c:126:1: error: embedding a directive within macro arguments is not portable [-Werror] #if LWIP_SNMP_V3 ^ ../../../../lwip/src/apps/snmp/snmp_msg.c:128:1: error: embedding a directive within macro arguments is not portable [-Werror] #endif ^ cc1: all warnings being treated as errors /home/axel/git/lwip/lwip-contrib/ports/unix/../Common.allports.mk:94: recipe for target 'snmp_msg.o' failed make: *** [snmp_msg.o] Error 1 _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Mon 20 Nov 2017 04:46:47 AM UTC Name: 0001-apps-snmp-Fix-buld-error-when-LWIP_SNMP_CONFIGURE_VE.patch Size: 3KiB By: axellin <http://savannah.nongnu.org/patch/download.php?file_id=42441> _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/patch/?9495> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |