This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/5.2] K&R libiberty
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 15 Apr 2002 00:14:10 -0400
- Subject: [patch/5.2] K&R libiberty
FYI,
I've committed the attached. Can get liberty compiled with ``cc' while
GDB is compiled with ``cc -Ae'' on HP/UX 10.20.
Andrew
(Yes, there is a missing HP/UX patch here ...)
2002-04-15 Andrew Cagney <ac131313@redhat.com>
From mainline: 2002-03-06 Jim Blandy <jimb@redhat.com>
* splay-tree.c (splay_tree_xmalloc_allocate,
splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
prototyped definitions. Mark `data' arguments as unused.
Index: libiberty/splay-tree.c
===================================================================
RCS file: /cvs/src/src/libiberty/splay-tree.c,v
retrieving revision 1.8
diff -u -r1.8 splay-tree.c
--- libiberty/splay-tree.c 21 Feb 2002 22:19:11 -0000 1.8
+++ libiberty/splay-tree.c 15 Apr 2002 04:10:44 -0000
@@ -230,13 +230,17 @@
/* An allocator and deallocator based on xmalloc. */
static void *
-splay_tree_xmalloc_allocate (int size, void *data)
+splay_tree_xmalloc_allocate (size, data)
+ int size;
+ void *data ATTRIBUTE_UNUSED;
{
return xmalloc (size);
}
static void
-splay_tree_xmalloc_deallocate (void *object, void *data)
+splay_tree_xmalloc_deallocate (object, data)
+ void *object;
+ void *data ATTRIBUTE_UNUSED;
{
free (object);
}