Patchwork Committed: ATTRIBUTE_UNUSED for asm_output_bss

login
register
mail settings
Submitter Joern Rennecke
Date Nov. 4, 2010, 7:53 p.m.
Message ID <20101104155314.o1skvx8aasg44kwo-nzlynne@webmail.spamcop.net>
Download mbox | patch
Permalink /patch/70160/
State New
Headers show

Comments

Joern Rennecke - Nov. 4, 2010, 7:53 p.m.
The --enable-werror-always build for h8300-elf found this static function
defined but not used.

bootstrapped on i686-pc-linux-gnu

Checked in as obvious.
2010-11-04  Joern Rennecke  <amylaar@spamcop.net>

	PR bootstrap/44756
	* varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.

Patch

Index: varasm.c
===================================================================
--- varasm.c	(revision 166313)
+++ varasm.c	(working copy)
@@ -473,7 +473,7 @@  resolve_unique_section (tree decl, int r
    ??? It is believed that this function will work in most cases so such
    support is localized here.  */
 
-static void
+static void ATTRIBUTE_UNUSED
 asm_output_bss (FILE *file, tree decl ATTRIBUTE_UNUSED,
 		const char *name,
 		unsigned HOST_WIDE_INT size ATTRIBUTE_UNUSED,