[bug #54593] Can't compile unix port with GCC 8

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

[bug #54593] Can't compile unix port with GCC 8

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

                 Summary: Can't compile unix port with GCC 8
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: jllledo
            Submitted on: Wed 29 Aug 2018 06:51:38 PM CEST
                Category: Contrib
                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: git head

    _______________________________________________________

Details:

Hello,

This error raises when I try to compile sys_arch.c in the unix port:

ports/unix/port/sys_arch.c:168:25: error: cast between incompatible function
types from ‘lwip_thread_fn’ {aka ‘void (*)(void *)’} to ‘void *
(*)(void *)’ [-Werror=cast-function-type]
                         (void *(*)(void *))
                         ^
cc1: all warnings being treated as errors

This is due to a new warning added in GCC 8, -Wcast-function-type[1], which
can be disabled adding the flag -Wno-cast-function-type.

------------
[1]
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wcast-function-type




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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 #54593] Can't compile unix port with GCC 8

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

                  Status:                    None => Fixed                  
             Open/Closed:                    Open => Closed                

    _______________________________________________________

Follow-up Comment #1:

Fixed, thanks for reporting!

    _______________________________________________________

Reply to this item at:

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

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


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