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

@ -1,3 +1,8 @@
2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix false GCC warning.
* breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
* breakpoint.c (update_watchpoint): Move code to change

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)