re PR c/7652 (-Wswitch-break : Warn if a switch case falls through)

PR c/7652
	* jcf-dump.c (print_constant): Add break.

From-SVN: r238824
This commit is contained in:
Marek Polacek 2016-07-28 15:46:07 +00:00 committed by Marek Polacek
parent ca8f2cb137
commit 717a767378
2 changed files with 6 additions and 0 deletions

View 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

View 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: