[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #53789] Two "statement is unreachable" warning in ip6.
From: |
hongchengyan |
Subject: |
[lwip-devel] [bug #53789] Two "statement is unreachable" warning in ip6.c and icmp6.c. |
Date: |
Sun, 29 Apr 2018 22:52:42 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 |
URL:
<http://savannah.nongnu.org/bugs/?53789>
Summary: Two "statement is unreachable" warning in ip6.c and
icmp6.c.
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: yanhc
Submitted on: Mon 30 Apr 2018 02:52:40 AM UTC
Category: IPv6
Severity: 3 - Normal
Item Group: Compiler Warning
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
lwIP version: 2.0.2
_______________________________________________________
Details:
In my MDK-ARM IDE, line 718 of ip6.c and line 121 of icmp6.c will cause the
following warning:
\lwip-2.0.2\src\core\ipv6\icmp6.c(121): warning: #111-D: statement is
unreachable.
The ip6.c is as follows, the break is unreachable after goto:
default:
goto options_done;
break;
The icmp6.c is as follows, the break is unreachable after retrn:
return;
break;
I have checked latest 2.0.3, the issue is still there.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?53789>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/
- [lwip-devel] [bug #53789] Two "statement is unreachable" warning in ip6.c and icmp6.c.,
hongchengyan <=