bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/24536] ld/ldbuildid.c: Incompatible pointer types in an assignme


From: nickc at redhat dot com
Subject: [Bug ld/24536] ld/ldbuildid.c: Incompatible pointer types in an assignment, -Werror/-Wcast-function-type
Date: Wed, 08 May 2019 14:03:12 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=24536

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nickc at redhat dot com

--- Comment #1 from Nick Clifton <nickc at redhat dot com> ---
Hi Pekka,

> Attached a proposed patch.  It basically does an extra (stylized) `void
> (*)(void)' cast, as suggested by GCC documentation. 

Can I just check that the upper case VOID types in your patch are correct ?
I am not familiar with the MinGW32 build environment, so I was wondering
whether the patched line ought to read like this instead:

  uuid_create = (UuidCreateFn) (void (WINAPI *)(void)) GetProcAddress
(rpc_library, "UuidCreate");

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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