lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #54569] Compiler warning in ip4.c: unused parameter de


From: Ole Christensen
Subject: [lwip-devel] [bug #54569] Compiler warning in ip4.c: unused parameter dest
Date: Sat, 25 Aug 2018 05:34:44 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

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/




reply via email to

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