mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 10:35:12 +08:00
Fix compile time warning when building the linker in a MinGw32 environment using gcc 8.
PR 24536 * ldbuildid.c (generate_build_id): Cast return value from GetProcAddress in order to avoid a compile time warning.
This commit is contained in:
parent
79299211a1
commit
46752c37b0
@ -1,3 +1,9 @@
|
||||
2019-05-08 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
|
||||
|
||||
PR 24536
|
||||
* ldbuildid.c (generate_build_id): Cast return value from
|
||||
GetProcAddress in order to avoid a compile time warning.
|
||||
|
||||
2019-05-06 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* testsuite/ld-undefined/weak-undef.exp: Don't xfail pj.
|
||||
|
@ -139,7 +139,7 @@ generate_build_id (bfd *abfd,
|
||||
|
||||
if (!rpc_library)
|
||||
return FALSE;
|
||||
uuid_create = (UuidCreateFn) GetProcAddress (rpc_library, "UuidCreate");
|
||||
uuid_create = (UuidCreateFn) (void (WINAPI *)(void)) GetProcAddress (rpc_library, "UuidCreate");
|
||||
if (!uuid_create)
|
||||
{
|
||||
FreeLibrary (rpc_library);
|
||||
|
Loading…
Reference in New Issue
Block a user