lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #7711] Remove compiler warnings about unused variabl


From: Philipp Tölke
Subject: [lwip-devel] [patch #7711] Remove compiler warnings about unused variables
Date: Mon, 30 Jan 2012 13:50:02 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20100101 Firefox/10.0

URL:
  <http://savannah.nongnu.org/patch/?7711>

                 Summary: Remove compiler warnings about unused variables
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: philipptoelke
            Submitted on: Mon 30 Jan 2012 01:50:01 PM GMT
                Category: None
                Priority: 3 - Low
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

This patch fixes two warnings about unused variables.

One variable is completly unused as its switch-branch contains no code -- this
patch removes this branch which also removes the silent drop of certain
ND6-packets.

The other variable is only used in certain configurations. This patch encloses
its declaration and initialization in a suitable #if.

This patch makes LWIP completly warning free with my configuration and
compiler (apart from 3 "unreachble code"-warnings that come from
"break"-statements after a return from a switch-branch. I would consider them
good practice.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 30 Jan 2012 01:50:01 PM GMT  Name:
0001-Fix-compiler-warning-about-unused-variables.patch  Size: 1kB   By:
philipptoelke

<http://savannah.nongnu.org/patch/download.php?file_id=24924>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?7711>

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




reply via email to

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