diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-02-06 22:49:58 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-02-06 22:49:58 +0000 |
commit | 1e52e2eb2a1a3526ab2033025d81e6930b369136 (patch) | |
tree | 0414f50e1f99a4bac4291f4e5f8d146a6dcc2561 | |
parent | f80bda8efddc42d85ad3c5830324afd3e6abd3a8 (diff) | |
download | gdb-1e52e2eb2a1a3526ab2033025d81e6930b369136.zip gdb-1e52e2eb2a1a3526ab2033025d81e6930b369136.tar.gz gdb-1e52e2eb2a1a3526ab2033025d81e6930b369136.tar.bz2 |
* proc-api.c (write_with_trace): Initialize local variable to
silence compiler warning.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/proc-api.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fff616c..d56797e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-02-06 Mark Kettenis <kettenis@gnu.org> + + * proc-api.c (write_with_trace): Initialize local variable to + silence compiler warning. + 2004-02-06 Andrew Cagney <cagney@redhat.com> * tui/tui-source.h: Do not include "defs.h". diff --git a/gdb/proc-api.c b/gdb/proc-api.c index 1e4a2dc..e6d30ea 100644 --- a/gdb/proc-api.c +++ b/gdb/proc-api.c @@ -459,7 +459,7 @@ static off_t lseek_offset; int write_with_trace (int fd, void *varg, size_t len, char *file, int line) { - int i; + int i = ARRAY_SIZE (rw_table) - 1; int ret; procfs_ctl_t *arg = (procfs_ctl_t *) varg; |