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/verify.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/verify.c')
-rw-r--r-- | gcc/java/verify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/verify.c b/gcc/java/verify.c index 5bc82cfe381..463509a3949 100644 --- a/gcc/java/verify.c +++ b/gcc/java/verify.c @@ -353,7 +353,7 @@ start_pc_cmp (xp, yp) goto verify_error; } while (0) #ifdef __GNUC__ -#define CHECK_PC_IN_RANGE(PC) ({if (PC < 0 || PC > length) goto bad_pc; 1;}) +#define CHECK_PC_IN_RANGE(PC) ({if (PC < 0 || PC > length) goto bad_pc; (void)1;}) #else #define CHECK_PC_IN_RANGE(PC) (PC < 0 || PC > length ? \ (fatal("Bad byte codes.\n"), 0) : 1) |