lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bugs #6564] src/core/tcp.c:139: warning: dereferencing typ


From: Leon Woestenberg
Subject: [lwip-devel] [bugs #6564] src/core/tcp.c:139: warning: dereferencing type-punned pointer will break strict-aliasing rules
Date: Wed, 28 Apr 2004 20:05:31 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8

This mail is an automated notification from the bugs tracker
 of the project: lwIP - A Lightweight TCP/IP stack.

/**************************************************************************/
[bugs #6564] Latest Modifications:

Changes by: 
                Leon Woestenberg <address@hidden>
'Date: 
                Thu 04/29/04 at 00:05 (Europe/Amsterdam)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
         Assigned to | None                      | likewise
              Status | Open                      | Closed







/**************************************************************************/
[bugs #6564] Full Item Snapshot:

URL: <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=6564>
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: Leon Woestenberg
On: Sat 11/15/03 at 00:24

Category:  TCP
Severity:  2
Item Group:  Compiler Warning
Resolution:  Fixed
Assigned to:  likewise
Status:  Closed


Summary:  src/core/tcp.c:139: warning: dereferencing type-punned pointer will 
break strict-aliasing rules

Original Submission:  err_t
tcp_close(struct tcp_pcb *pcb)
{
  err_t err;

#if TCP_DEBUG
  LWIP_DEBUGF(TCP_DEBUG, ("tcp_close: closing in state "));
  tcp_debug_print_state(pcb->state);
  LWIP_DEBUGF(TCP_DEBUG, ("n"));
#endif /* TCP_DEBUG */
  switch (pcb->state) {
  case LISTEN:
    err = ERR_OK;
    tcp_pcb_remove((struct tcp_pcb **)&tcp_listen_pcbs, pcb);


Follow-up Comments
------------------


-------------------------------------------------------
Date: Thu 11/27/03 at 16:34         By: jani
I think th e -fno-strictaliasing option must be used to silence these warnings 
in gcc 3.3.X












For detailed info, follow this link:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=6564>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]