aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf-dump.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-03-23 07:24:15 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-03-23 07:24:15 +0000
commit9ee9b555021cd59c28ca989a4cdeff4cc0f9cbcc (patch)
treea2fcdf12a5baef3b05d14d32b95512c4b247997d /gcc/java/jcf-dump.c
parentea735e02ae57dfb05059317011ceb9935f1a44a6 (diff)
downloadgcc-9ee9b555021cd59c28ca989a4cdeff4cc0f9cbcc.zip
gcc-9ee9b555021cd59c28ca989a4cdeff4cc0f9cbcc.tar.gz
gcc-9ee9b555021cd59c28ca989a4cdeff4cc0f9cbcc.tar.bz2
Warning fixes:
* gjavah.c (print_c_decl): Remove unused argument `flags'. * jcf-dump.c (print_access_flags): Add braces around if-else. * jvspec.c (lang_specific_driver): Wrap variable `len' in macro COMBINE_INPUTS. * lex.c (build_wfl_node): Add static prototype. * lex.h (build_wfl_node): Remove static prototype. * parse.y: Include lex.c early enough to declare everything needed. Ensure calls to `build_wfl_node' pass the proper arguments. (create_class): Remove unused variable `super_decl'. (get_printable_method_name): Initialize variable `name'. From-SVN: r25921
Diffstat (limited to 'gcc/java/jcf-dump.c')
-rw-r--r--gcc/java/jcf-dump.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/java/jcf-dump.c b/gcc/java/jcf-dump.c
index 3247592..6d3e372 100644
--- a/gcc/java/jcf-dump.c
+++ b/gcc/java/jcf-dump.c
@@ -321,10 +321,12 @@ DEFUN (print_access_flags, (stream, flags, context),
if (flags & ACC_STATIC) fprintf (stream, " static");
if (flags & ACC_FINAL) fprintf (stream, " final");
if (flags & ACC_SYNCHRONIZED)
- if (context == 'c')
- fprintf (stream, " super");
- else
- fprintf (stream, " synchronized");
+ {
+ if (context == 'c')
+ fprintf (stream, " super");
+ else
+ fprintf (stream, " synchronized");
+ }
if (flags & ACC_VOLATILE) fprintf (stream, " volatile");
if (flags & ACC_TRANSIENT) fprintf (stream, " transient");
if (flags & ACC_NATIVE) fprintf (stream, " native");