diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-04-15 04:15:16 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-04-15 04:15:16 +0000 |
commit | ad36db47057240d292a99eedfc4be3b698c1d400 (patch) | |
tree | caeaa56f113b028079e55a5a27cf352ff0006f28 /libiberty | |
parent | a10c0d64874b586f08b3aacdd51f7f17c6de1051 (diff) | |
download | gdb-ad36db47057240d292a99eedfc4be3b698c1d400.zip gdb-ad36db47057240d292a99eedfc4be3b698c1d400.tar.gz gdb-ad36db47057240d292a99eedfc4be3b698c1d400.tar.bz2 |
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.
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 7 | ||||
-rw-r--r-- | libiberty/splay-tree.c | 8 |
2 files changed, 13 insertions, 2 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index e46c711..0f0cba3 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,10 @@ +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. + 2002-02-21 Jim Blandy <jimb@redhat.com> * splay-tree.c (splay_tree_xmalloc_allocate, diff --git a/libiberty/splay-tree.c b/libiberty/splay-tree.c index f12b4cc..7999447 100644 --- a/libiberty/splay-tree.c +++ b/libiberty/splay-tree.c @@ -230,13 +230,17 @@ splay_tree_foreach_helper (sp, node, fn, data) /* 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); } |