[bug #54569] Compiler warning in ip4.c: unused parameter dest

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug #54569] Compiler warning in ip4.c: unused parameter dest

Simon Goldschmidt
URL:
  <http://savannah.nongnu.org/bugs/?54569>

                 Summary: Compiler warning in ip4.c: unused parameter dest
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: ole_c
            Submitted on: Sat 25 Aug 2018 09:34:42 AM UTC
                Category: IPv4
                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: Other

    _______________________________________________________

Details:

Version lwip-STABLE-2_1_0_RC1:

If LWIP_SINGLE_NETIF is defined to 1 and debugging via LWIP_DEBUGF() is
disabled, gcc issues a warning about the unused parameter 'dest'.

Fix:

struct netif *
ip4_route(const ip4_addr_t *dest)
{
>   (void) dest;
>
#if !LWIP_SINGLE_NETIF
  struct netif *netif;

Cheers, Ole





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?54569>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

[bug #54569] Compiler warning in ip4.c: unused parameter dest

Simon Goldschmidt
Update of bug #54569 (project lwip):

                  Status:                    None => Fixed                  
             Open/Closed:                    Open => Closed                
         Planned Release:                    None => 2.1.0                  

    _______________________________________________________

Follow-up Comment #1:

Fixed, thanks for reporting!

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?54569>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel