diff options
author | Pekka Sepp?nen <pexu@sourceware.mail.kapsi.fi> | 2019-05-08 16:54:16 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2019-05-08 16:54:16 +0100 |
commit | 46752c37b06c83a8cbf6be887beac4092d5e3505 (patch) | |
tree | 6ce0e47160e2ba2461d88aa0dfba0055215f8f4c /ld/ldbuildid.c | |
parent | 79299211a1a9a701f146620d419da6ee0175798c (diff) | |
download | gdb-46752c37b06c83a8cbf6be887beac4092d5e3505.zip gdb-46752c37b06c83a8cbf6be887beac4092d5e3505.tar.gz gdb-46752c37b06c83a8cbf6be887beac4092d5e3505.tar.bz2 |
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.
Diffstat (limited to 'ld/ldbuildid.c')
-rw-r--r-- | ld/ldbuildid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/ldbuildid.c b/ld/ldbuildid.c index 55ff3be..c4ad199 100644 --- a/ld/ldbuildid.c +++ b/ld/ldbuildid.c @@ -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); |