+2003-10-22 Tom Tromey <tromey@redhat.com>
+
+ * expr.c (expand_byte_code): Only warn about dead bytecode when
+ extra_warnings is set.
+
2003-10-22 Bryce McKinlay <bryce@mckinlay.net.nz>
Fix for PR java/12586.
if (dead_code_index != -1)
{
/* We've just reached the end of a region of dead code. */
- warning ("unreachable bytecode from %d to before %d",
- dead_code_index, PC);
+ if (extra_warnings)
+ warning ("unreachable bytecode from %d to before %d",
+ dead_code_index, PC);
dead_code_index = -1;
}
}
if (dead_code_index != -1)
{
/* We've just reached the end of a region of dead code. */
- warning ("unreachable bytecode from %d to the end of the method",
- dead_code_index);
+ if (extra_warnings)
+ warning ("unreachable bytecode from %d to the end of the method",
+ dead_code_index);
}
}