Fix false GCC warning.
	* breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
This commit is contained in:
Jan Kratochvil 2011-05-03 07:29:17 +00:00
parent 1e718ff1cc
commit d07205c2f7
2 changed files with 7 additions and 1 deletions

View file

@ -11468,7 +11468,8 @@ do_enable_breakpoint (struct breakpoint *bpt, enum bpdisp disposition)
if (is_watchpoint (bpt))
{
enum enable_state orig_enable_state;
/* Initialize it just to avoid a GCC false warning. */
enum enable_state orig_enable_state = 0;
struct gdb_exception e;
TRY_CATCH (e, RETURN_MASK_ALL)