diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-21 15:10:38 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-21 15:10:38 +0000 |
commit | 32fb15163ee712f3c6fd9f2c9932cafeb869d817 (patch) | |
tree | 9d84b78fd2fc7ca2e27ae97d93b06901304c85a9 /gcc/java/jcf-reader.c | |
parent | 1f9359e87896c896a8b67d35ed730b11dc16f337 (diff) | |
download | gcc-32fb15163ee712f3c6fd9f2c9932cafeb869d817.tar.gz |
Warning fixes:
* gjavah.c (NEED_PEEK_ATTRIBUTE, NEED_SKIP_ATTRIBUTE): Define
* jcf-reader.c (peek_attribute, skip_attribute): Only define
when requested.
* parse.h (yyerror): If JC1_LITE, mark with ATTRIBUTE_NORETURN.
* verify.c (CHECK_PC_IN_RANGE): Cast result of stmt-expr to void.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36994 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/jcf-reader.c')
-rw-r--r-- | gcc/java/jcf-reader.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/java/jcf-reader.c b/gcc/java/jcf-reader.c index 1b081e54fbe..4db90657d09 100644 --- a/gcc/java/jcf-reader.c +++ b/gcc/java/jcf-reader.c @@ -27,8 +27,6 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ #include "zipfile.h" static int get_attribute PARAMS ((JCF *)); -static int peek_attribute PARAMS ((JCF *, int, const char *, int)); -static void skip_attribute PARAMS ((JCF *, int)); static int jcf_parse_preamble PARAMS ((JCF *)); static int jcf_parse_constant_pool PARAMS ((JCF *)); static void jcf_parse_class PARAMS ((JCF *)); @@ -36,12 +34,19 @@ static int jcf_parse_fields PARAMS ((JCF *)); static int jcf_parse_one_method PARAMS ((JCF *)); static int jcf_parse_methods PARAMS ((JCF *)); static int jcf_parse_final_attributes PARAMS ((JCF *)); +#ifdef NEED_PEEK_ATTRIBUTE +static int peek_attribute PARAMS ((JCF *, int, const char *, int)); +#endif +#ifdef NEED_SKIP_ATTRIBUTE +static void skip_attribute PARAMS ((JCF *, int)); +#endif /* Go through all available attribute (ATTRIBUTE_NUMER) and try to identify PEEKED_NAME. Return 1 if PEEKED_NAME was found, 0 otherwise. JCF is restored to its initial position before returning. */ +#ifdef NEED_PEEK_ATTRIBUTE /* Not everyone uses this function */ static int peek_attribute (jcf, attribute_number, peeked_name, peeked_name_length) JCF *jcf; @@ -81,7 +86,9 @@ peek_attribute (jcf, attribute_number, peeked_name, peeked_name_length) JCF_SEEK (jcf, absolute_offset); return to_return; } +#endif +#ifdef NEED_SKIP_ATTRIBUTE /* Not everyone uses this function */ static void skip_attribute (jcf, number_of_attribute) JCF *jcf; @@ -94,6 +101,7 @@ skip_attribute (jcf, number_of_attribute) JCF_SKIP (jcf, JCF_readu4 (jcf)); } } +#endif static int DEFUN(get_attribute, (jcf), |