This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Fix compiler warnings in linespec.c
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: gdb-patches at sourceware dot org
- Date: Tue, 10 Jan 2006 23:14:47 +0100 (CET)
- Subject: [commit] Fix compiler warnings in linespec.c
GCC 4 warns about these.
Committed as obvious.
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* linespec.c (decode_objc): Make i1 and i2 unsigned.
(find_method): Set values.sals to NULL.
Index: linespec.c
===================================================================
RCS file: /cvs/src/src/gdb/linespec.c,v
retrieving revision 1.64
diff -u -p -r1.64 linespec.c
--- linespec.c 17 Dec 2005 22:34:01 -0000 1.64
+++ linespec.c 10 Jan 2006 22:12:50 -0000
@@ -1080,8 +1080,8 @@ decode_objc (char **argptr, int funfirst
struct symbol *sym = NULL;
char *copy = NULL;
struct block *block = NULL;
- int i1 = 0;
- int i2 = 0;
+ unsigned i1 = 0;
+ unsigned i2 = 0;
values.sals = NULL;
values.nelts = 0;
@@ -1427,6 +1427,7 @@ find_method (int funfirstline, char ***c
}
else
{
+ values.sals = NULL;
values.nelts = 0;
}
return values;