* [PATCH] Fix gdbtypes.c:check_stub_method_group.
@ 2002-09-14 8:40 Mark Kettenis
2002-09-14 8:45 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Mark Kettenis @ 2002-09-14 8:40 UTC (permalink / raw)
To: gdb-patches
My compiler warns about it, and rigtly so. Checked in as obvious.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* gdbtypes.c (check_stub_method_group): Initialize found_stub to
zero.
Index: gdbtypes.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtypes.c,v
retrieving revision 1.57
diff -u -p -r1.57 gdbtypes.c
--- gdbtypes.c 14 Sep 2002 02:09:39 -0000 1.57
+++ gdbtypes.c 14 Sep 2002 15:38:29 -0000
@@ -1793,7 +1793,7 @@ check_stub_method_group (struct type *ty
{
int len = TYPE_FN_FIELDLIST_LENGTH (type, method_id);
struct fn_field *f = TYPE_FN_FIELDLIST1 (type, method_id);
- int j, found_stub;
+ int j, found_stub = 0;
for (j = 0; j < len; j++)
if (TYPE_FN_FIELD_STUB (f, j))
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] Fix gdbtypes.c:check_stub_method_group.
2002-09-14 8:40 [PATCH] Fix gdbtypes.c:check_stub_method_group Mark Kettenis
@ 2002-09-14 8:45 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2002-09-14 8:45 UTC (permalink / raw)
To: gdb-patches
Oops. Thank you, Mark. I need to stop testing in an -O0 tree
(causing -Wuninitialized not to work, in 2.95 at least).
On Sat, Sep 14, 2002 at 05:40:23PM +0200, Mark Kettenis wrote:
> My compiler warns about it, and rigtly so. Checked in as obvious.
>
> Mark
>
> Index: ChangeLog
> from Mark Kettenis <kettenis@gnu.org>
>
> * gdbtypes.c (check_stub_method_group): Initialize found_stub to
> zero.
>
> Index: gdbtypes.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/gdbtypes.c,v
> retrieving revision 1.57
> diff -u -p -r1.57 gdbtypes.c
> --- gdbtypes.c 14 Sep 2002 02:09:39 -0000 1.57
> +++ gdbtypes.c 14 Sep 2002 15:38:29 -0000
> @@ -1793,7 +1793,7 @@ check_stub_method_group (struct type *ty
> {
> int len = TYPE_FN_FIELDLIST_LENGTH (type, method_id);
> struct fn_field *f = TYPE_FN_FIELDLIST1 (type, method_id);
> - int j, found_stub;
> + int j, found_stub = 0;
>
> for (j = 0; j < len; j++)
> if (TYPE_FN_FIELD_STUB (f, j))
>
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-09-14 15:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-14 8:40 [PATCH] Fix gdbtypes.c:check_stub_method_group Mark Kettenis
2002-09-14 8:45 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox