patchlwIP - A Lightweight TCP/IP stack - Patches: patch #9495, apps/snmp: Fix buld error when...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #9495: apps/snmp: Fix buld error when LWIP_SNMP_CONFIGURE_VERSIONS=1

Submitter:  Axel Lin <axellin>
Submitted:  Mon 20 Nov 2017 04:46:47 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  goldsimon Open/Closed:  Closed
Planned Release:  None

Wed 22 Nov 2017 03:54:31 PM UTC, comment #1: 

Pushed, thanks for hte patch.

Simon Goldschmidt <goldsimon>
Group administrator
Mon 20 Nov 2017 04:46:47 AM UTC, original submission:  

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

Axel Lin <axellin>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by axellin (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-11-22 goldsimon StatusNone Done
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2017-11-20 axellin Attached File- Added 0001-apps-snmp-Fix-buld-error-when-LWIP_SNMP_CONFIGURE_VE.patch, #42441

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code