From cd531a2eddbe17c94a99af2b62c05fe417b97a94 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Fri, 30 Jul 1999 18:31:34 +0000 Subject: Warning fixes: * expr.c (build_java_soft_divmod): Provide a default case in switch. (java_lang_expand_expr): Mark parameters `target', `tmode' and `modifier' with ATTRIBUTE_UNUSED. * gjavah.c (process_file): Add braces around ambiguous `else'. * jcf-dump.c (print_access_flags, localvar_free): Change return type to void. * parse.y (java_complete_expand_method): Initialize variable `exception_copy'. (resolve_qualified_expression_name): Likewise for `field_decl'. (patch_method_invocation): Likewise for `class_to_search'. (qualify_ambiguous_name): Likewise for `name' and `ptr_type'. (patch_assignment): Likewise for `lhs_type'. * verify.c (verify_jvm_instructions): Remove unused variable `caller'. From-SVN: r28344 --- gcc/java/gjavah.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'gcc/java/gjavah.c') diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c index 500aa2c..b680a87 100644 --- a/gcc/java/gjavah.c +++ b/gcc/java/gjavah.c @@ -1308,18 +1308,20 @@ DEFUN(process_file, (jcf, out), jcf_parse_class (jcf); if (written_class_count++ == 0 && out) - if (! stubs) - fputs ("// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-\n\n", - out); - else - { - fputs ("// This file was created by `gcjh -stubs'. It is -*- c++ -*-. + { + if (! stubs) + fputs ("// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-\n\n", + out); + else + { + fputs ("// This file was created by `gcjh -stubs'. It is -*- c++ -*-. // // This file is intended to give you a head start on implementing native // methods using CNI. // Be aware: running `gcjh -stubs' once more for this class may overwrite any // edits you have made to this file.\n\n", out); - } + } + } if (out) { -- cgit v1.1