Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <kettenis@chello.nl>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] Fix gdbtypes.c:check_stub_method_group.
Date: Sat, 14 Sep 2002 08:40:00 -0000	[thread overview]
Message-ID: <200209141540.g8EFeNhZ039487@elgar.kettenis.dyndns.org> (raw)

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))


             reply	other threads:[~2002-09-14 15:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-14  8:40 Mark Kettenis [this message]
2002-09-14  8:45 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200209141540.g8EFeNhZ039487@elgar.kettenis.dyndns.org \
    --to=kettenis@chello.nl \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox