This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] Fix mingw linker build
- From: "Steve Ellcey " <sellcey at mips dot com>
- To: <binutils at sourceware dot org>
- Date: Tue, 15 Apr 2014 09:27:04 -0700
- Subject: [PATCH] Fix mingw linker build
- Authentication-results: sourceware.org; auth=none
I was doing a mingw build of binutils and ran into a build failure
when compiling ld. If __MINGW32__ is set then the 'size' argument to
generate_build_id is not used and the build fails because we are
using -Werror.
This patch fixes the linker build for mingw, OK to checkin?
Steve Ellcey
sellcey@mips.com
2014-04-15 Steve Ellcey <sellcey@mips.com>
* ldbuildid.c (generate_build_id): Add ATTRIBUTE_UNUSED to size arg.
diff --git a/ld/ldbuildid.c b/ld/ldbuildid.c
index 1214789..0e1a9bf 100644
--- a/ld/ldbuildid.c
+++ b/ld/ldbuildid.c
@@ -98,7 +98,7 @@ generate_build_id (bfd *abfd,
const char *style,
checksum_fn checksum_contents,
unsigned char *id_bits,
- int size)
+ int size ATTRIBUTE_UNUSED)
{
if (streq (style, "md5"))
{