lwip-devel
[Top][All Lists]
Advanced

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

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


From: Joan Lledó
Subject: [lwip-devel] [bug #54593] Can't compile unix port with GCC 8
Date: Wed, 29 Aug 2018 12:51:39 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

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/




reply via email to

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