This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix mingw linker build


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"))
     {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]