/* 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.
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);
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))