Fix compile time warning when building the linker in a MinGw32 environment using...
authorPekka Sepp?nen <pexu@sourceware.mail.kapsi.fi>
Wed, 8 May 2019 15:54:16 +0000 (16:54 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 8 May 2019 15:54:16 +0000 (16:54 +0100)
PR 24536
* ldbuildid.c (generate_build_id): Cast return value from
GetProcAddress in order to avoid a compile time warning.

ld/ChangeLog
ld/ldbuildid.c

index 325392f498fe3d911329871987efa8e1f038b3af..6bdc516173a46e9886e0d0b24f82d765d3c76122 100644 (file)
@@ -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.
index 55ff3bed84d1b09575a5a93deb61a2ce6c24cab0..c4ad19992b51161bb42049a20fd92766ce79d426 100644 (file)
@@ -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);
This page took 0.026697 seconds and 4 git commands to generate.