Patchwork jcf-reader: support for JSR 292 classfile extensions

login
register
mail settings
Submitter Andrew Haley
Date April 11, 2012, 1:20 p.m.
Message ID <4F858523.8000607@redhat.com>
Download mbox | patch
Permalink /patch/151794/
State New
Headers show

Comments

Andrew Haley - April 11, 2012, 1:20 p.m.
On 04/11/2012 01:43 PM, Richard Guenther wrote:
> This breaks bootstrap for me:
>
> In file included from
> /space/rguenther/src/svn/trunk/gcc/java/jcf-parse.c:1009:0:
> /space/rguenther/src/svn/trunk/gcc/java/jcf-reader.c:550:1: error:
> 'int jcf_parse_bootstrap_methods(JCF*, int)' defined but not used
> [-Werror=unused-function]
>  jcf_parse_bootstrap_methods (JCF* jcf, int attribute_length ATTRIBUTE_UNUSED)
>  ^
> cc1plus: all warnings being treated as errors
> make[3]: *** [java/jcf-parse.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
>

Sorry.

Andrew.


2012-04-11  Andrew Haley  <aph@redhat.com>

	* jcf-reader.c (jcf_parse_bootstrap_methods): Add
	ATTRIBUTE_UNUSED.

Patch

Index: gcc/java/jcf-reader.c
===================================================================
--- gcc/java/jcf-reader.c	(revision 186307)
+++ gcc/java/jcf-reader.c	(working copy)
@@ -36,7 +36,7 @@ 
 static int jcf_parse_one_method (JCF *, int);
 static int jcf_parse_methods (JCF *);
 static int jcf_parse_final_attributes (JCF *);
-static int jcf_parse_bootstrap_methods (JCF *, int );
+static int jcf_parse_bootstrap_methods (JCF *, int) ATTRIBUTE_UNUSED;
 #ifdef NEED_PEEK_ATTRIBUTE
 static int peek_attribute (JCF *, int, const char *, int);
 #endif