gdb/
Fix false GCC warning. * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
This commit is contained in:
parent
1e718ff1cc
commit
d07205c2f7
2 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue