diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-07-30 18:31:34 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-07-30 18:31:34 +0000 |
commit | cd531a2eddbe17c94a99af2b62c05fe417b97a94 (patch) | |
tree | c33f7ed979269396307f864e8147d16d6e3382c4 /gcc/java/gjavah.c | |
parent | 93b69d0f0d4b3a3a4b6481c50720aa351f77e5e5 (diff) | |
download | gcc-cd531a2eddbe17c94a99af2b62c05fe417b97a94.zip gcc-cd531a2eddbe17c94a99af2b62c05fe417b97a94.tar.gz gcc-cd531a2eddbe17c94a99af2b62c05fe417b97a94.tar.bz2 |
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
Diffstat (limited to 'gcc/java/gjavah.c')
-rw-r--r-- | gcc/java/gjavah.c | 16 |
1 files changed, 9 insertions, 7 deletions
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) { |