[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-members] [bugs #6564] src/core/tcp.c:139: warning: dereferencing t
From: |
Jani Monoses |
Subject: |
[lwip-members] [bugs #6564] src/core/tcp.c:139: warning: dereferencing type-punned pointer will break strict-aliasing rules |
Date: |
Thu, 27 Nov 2003 11:34:59 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 Firebird/0.7 |
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:
Jani Monoses <address@hidden>
'Date:
Thu 11/27/2003 at 16:34 (GMT)
------------------ Additional Follow-up Comments ----------------------------
I think th e -fno-strictaliasing option must be used to silence these warnings
in gcc 3.3.X
/**************************************************************************/
[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/2003 at 00:24
Category: TCP
Severity: 2
Item Group: Compiler Warning
Resolution: None
Assigned to: None
Status: Open
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/2003 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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-members] [bugs #6564] src/core/tcp.c:139: warning: dereferencing type-punned pointer will break strict-aliasing rules,
Jani Monoses <=