re PR c/7652 (-Wswitch-break : Warn if a switch case falls through)
authorMarek Polacek <polacek@redhat.com>
Thu, 28 Jul 2016 15:46:07 +0000 (15:46 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 28 Jul 2016 15:46:07 +0000 (15:46 +0000)
PR c/7652
* jcf-dump.c (print_constant): Add break.

From-SVN: r238824

gcc/java/ChangeLog
gcc/java/jcf-dump.c

index 874466a7f0a08898ca392051f93733df363ebade..af1b136d96ed21b0e9cc69001c2edbeec0f061c0 100644 (file)
@@ -1,3 +1,8 @@
+2016-07-28  Marek Polacek  <polacek@redhat.com>
+
+       PR c/7652
+       * jcf-dump.c (print_constant): Add break.
+
 2016-07-21  Richard Biener  <rguenther@suse.de>
 
        * jcf-parse.c (java_emit_static_constructor): Set
index 1331b55fa0ec16fb52482579db35ac16566bc65c..8b00e57d24a960b332f26cef795ed9c1c783b892 100644 (file)
@@ -926,6 +926,7 @@ print_constant (FILE *out, JCF *jcf, int index, int verbosity)
          if (verbosity > 0)
            fprintf (out, "Fieldref: %ld=", (long) JPOOL_USHORT2 (jcf, index));
          print_constant (out, jcf, JPOOL_USHORT2 (jcf, index), 0);
+         break;
        case 5:
        case 6:
        case 7: