From: Aleksandar Ristovski <aristovski@qnx.com>
To: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: [patch] cleanup: Wunused target.c
Date: Thu, 31 Jan 2013 04:25:00 -0000 [thread overview]
Message-ID: <5109F244.1090505@qnx.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 255 bytes --]
Hello,
This is removing unused variables and allows compiling with -Wunused.
Thanks,
Aleksandar Ristovski
QNX Software Systems
ChangeLog:
Aleksandar Ristovski <aristovski@qnx.com>
* target.c (target_read_string): Remove unused ORIGLEN.
[-- Attachment #2: Wunused-target-201301302122.patch --]
[-- Type: text/x-patch, Size: 751 bytes --]
Index: gdb/target.c
===================================================================
RCS file: /cvs/src/src/gdb/target.c,v
retrieving revision 1.318
diff -u -p -r1.318 target.c
--- gdb/target.c 1 Jan 2013 06:32:52 -0000 1.318
+++ gdb/target.c 30 Jan 2013 22:25:16 -0000
@@ -1220,7 +1220,7 @@ target_translate_tls_address (struct obj
int
target_read_string (CORE_ADDR memaddr, char **string, int len, int *errnop)
{
- int tlen, origlen, offset, i;
+ int tlen, offset, i;
gdb_byte buf[4];
int errcode = 0;
char *buffer;
@@ -1235,8 +1235,6 @@ target_read_string (CORE_ADDR memaddr, c
buffer = xmalloc (buffer_allocated);
bufptr = buffer;
- origlen = len;
-
while (len > 0)
{
tlen = MIN (len, 4 - (memaddr & 3));
next reply other threads:[~2013-01-31 4:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-31 4:25 Aleksandar Ristovski [this message]
2013-01-31 16:15 ` Tom Tromey
2013-01-31 16:33 ` Aleksandar Ristovski
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=5109F244.1090505@qnx.com \
--to=aristovski@qnx.com \
--cc=gdb-patches@sourceware.org \
/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