Commit: PR 22823: Fix gcc 8 compile time warnings

Alan Modra
Thu Feb 15 10:02:00 GMT 2018

On Thu, Feb 15, 2018 at 08:37:49AM +0000, Maciej W. Rozycki wrote:
> however (we have `-Wstrict-prototypes' spelled out explicitly).  It looks 
> like casting to `void (*) (void)' is the way to calm GCC, according to 
> `-Wcast-function-type' option documentation (if all else fails, check the 
> manual).

Just plain (void *) works too.

Alan Modra
Australia Development Lab, IBM

More information about the Binutils mailing list