buglwIP - A Lightweight TCP/IP stack - Bugs: bug #54593, Can't compile unix port with GCC 8

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitter:  Joan Lledó <jllledo>
Submitted:  Wed 29 Aug 2018 04:51:38 PM UTC
   
 
Category:  Contrib Severity:  3 - Normal
Item Group:  Compiler Warning Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Planned Release:  None
lwIP version:  git head

Wed 29 Aug 2018 06:32:20 PM UTC, comment #1: 

Fixed, thanks for reporting!

Dirk Ziegelmeier <dziegel>
Group administrator
Wed 29 Aug 2018 04:51:38 PM UTC, original submission:  

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

Joan Lledó <jllledo>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dziegel (Posted a comment)
  • -email is unavailable- added by jllledo (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-08-29 dziegel StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code