From: Jan Kratochvil Date: Tue, 3 May 2011 07:29:17 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d07205c2f7de1d447e2cad21372b113e694765ce;p=binutils-gdb.git gdb/ Fix false GCC warning. * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 32c6491442a..484ace57220 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-05-03 Jan Kratochvil + + Fix false GCC warning. + * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state. + 2011-05-03 Thiago Jung Bauermann * breakpoint.c (update_watchpoint): Move code to change diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index e265135fdd9..d8eb891abc7 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)