diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-05-03 07:29:17 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-05-03 07:29:17 +0000 |
commit | d07205c2f7de1d447e2cad21372b113e694765ce (patch) | |
tree | 1ecd885ffd9a9068594f5d40cac807c6356f5104 | |
parent | 1e718ff1cc2a3eb7e63da14ae8c425570fbfa270 (diff) | |
download | gdb-d07205c2f7de1d447e2cad21372b113e694765ce.zip gdb-d07205c2f7de1d447e2cad21372b113e694765ce.tar.gz gdb-d07205c2f7de1d447e2cad21372b113e694765ce.tar.bz2 |
gdb/
Fix false GCC warning.
* breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/breakpoint.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 32c6491..484ace5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index e265135..d8eb891 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -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) |