buglwIP - A Lightweight TCP/IP stack - Bugs: bug #27851, TCP_EVENT_RECV(pcb, NULL,...)...

 
 

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

bug #27851: TCP_EVENT_RECV(pcb, NULL,...) results in unreachable code warning

Submitter:  Simon Goldschmidt <goldsimon>
Submitted:  Thu 29 Oct 2009 06:08:03 PM UTC
   
 
Category:  TCP Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  1.3.1

Sun 22 Nov 2009 04:19:10 PM UTC, comment #2: 

Fixed by calling tcp_recv_null() when pcb->recv is NULL.

Simon Goldschmidt <goldsimon>
Group administrator
Thu 29 Oct 2009 06:08:41 PM UTC, comment #1: 

I'd add a new define for the NULL case:

#define TCP_EVENT_RECV_CLOSED(pcb, ...)

Simon Goldschmidt <goldsimon>
Group administrator
Thu 29 Oct 2009 06:08:03 PM UTC, original submission:  

From Iordan Neshev on lwip-devel (29-10-2009):

*line 337:
        TCP_EVENT_RECV(pcb, NULL, ERR_OK, err);
        A note may be added:
        /* the NULL argument causes compiler warning (unreachable code)
that can be safely ignored */
        I spent some time to find out why this happens. May be helpful
for somebody.

Simon Goldschmidt <goldsimon>
Group administrator

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (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
    2009-11-22 goldsimon Assigned toNone goldsimon
        Open/ClosedOpen Closed
        StatusNone Fixed
        CategoryNone TCP

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code