This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch installed for signed/unsigned warning in attribs.c
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 10 Mar 2002 15:57:14 -0500 (EST)
- Subject: Patch installed for signed/unsigned warning in attribs.c
Fixes:
> attribs.c:288: warning: comparison between signed and unsigned
Bootstrapped on sparc-sun-solaris2.7, installed as obvious.
--Kaveh
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 1.13296
diff -u -p -r1.13296 ChangeLog
--- ChangeLog 2002/03/10 18:09:31 1.13296
+++ ChangeLog 2002/03/10 20:53:10
@@ -1,3 +1,7 @@
+2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * attribs.c (decl_attributes): Fix signed/unsigned warning.
+
2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
* config/mmix/mmix.c: Improve comments.
Index: attribs.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/attribs.c,v
retrieving revision 1.17
diff -u -p -r1.17 attribs.c
--- attribs.c 2002/03/03 14:07:18 1.17
+++ attribs.c 2002/03/10 20:53:11
@@ -283,7 +283,7 @@ decl_attributes (node, attributes, flags
tree *anode = node;
const struct attribute_spec *spec = NULL;
bool no_add_attrs = 0;
- int i;
+ size_t i;
for (i = 0; i < ARRAY_SIZE (attribute_tables); i++)
{