X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=ld%2Fldbuildid.c;h=d7eb6ae560b8c465c3602ab8082f3cad4c91b1c1;hb=1949ad044a6979e176b0d0ebd5cfebbf162dd4f5;hp=d2dccc5c30be159579bc44cc9d1b8f2c6d72d771;hpb=d0d4152fa5c87532bf05007def680b5a536e1827;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/ldbuildid.c b/ld/ldbuildid.c index d2dccc5c30..d7eb6ae560 100644 --- a/ld/ldbuildid.c +++ b/ld/ldbuildid.c @@ -1,5 +1,5 @@ /* ldbuildid.c - Build Id support routines - Copyright (C) 2013-2016 Free Software Foundation, Inc. + Copyright (C) 2013-2020 Free Software Foundation, Inc. This file is part of the GNU Binutils. @@ -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); @@ -152,7 +152,8 @@ generate_build_id (bfd *abfd, return FALSE; } FreeLibrary (rpc_library); - memcpy (id_bits, &uuid, size < sizeof (UUID) ? size : sizeof (UUID)); + memcpy (id_bits, &uuid, + (size_t) size < sizeof (UUID) ? (size_t) size : sizeof (UUID)); #endif /* __MINGW32__ */ } else if (strneq (style, "0x", 2))