This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Add ATTRIBUTE_UNUSED to info in compute_bucket_count
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Fri, 30 Jul 2010 09:30:58 -0700
- Subject: PATCH: Add ATTRIBUTE_UNUSED to info in compute_bucket_count
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
If BFD_HOST_U_64_BIT is undefined, info is unused. I checked in
this patch to add ATTRIBUTE_UNUSED to info.
H.J.
---
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/bfd/ChangeLog,v
retrieving revision 1.5084
diff -u -p -r1.5084 ChangeLog
--- ChangeLog 30 Jul 2010 07:32:16 -0000 1.5084
+++ ChangeLog 30 Jul 2010 16:29:32 -0000
@@ -1,3 +1,7 @@
+2010-07-30 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elflink.c (compute_bucket_count): Add ATTRIBUTE_UNUSED to info.
+
2010-07-30 Anthony Green <green@moxielogic.com>
* config.bfd (targ_cpu): Add moxie-*-rtems support.
Index: elflink.c
===================================================================
RCS file: /cvs/src/src/bfd/elflink.c,v
retrieving revision 1.372
diff -u -p -r1.372 elflink.c
--- elflink.c 14 Apr 2010 08:29:33 -0000 1.372
+++ elflink.c 30 Jul 2010 16:29:32 -0000
@@ -5352,7 +5352,7 @@ static const size_t elf_buckets[] =
Therefore the result is always a good payoff between few collisions
(= short chain lengths) and table size. */
static size_t
-compute_bucket_count (struct bfd_link_info *info,
+compute_bucket_count (struct bfd_link_info *info ATTRIBUTE_UNUSED,
unsigned long int *hashcodes ATTRIBUTE_UNUSED,
unsigned long int nsyms,
int gnu_hash)