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 | 8de08d47a4b960368e1f000e187409d7cbeb9666 (patch) | |
tree | 207bf509f8eb33a7fb2fe955b52f12a2cc113f15 /libiberty/splay-tree.c | |
parent | 57e9b9b1a380c052ad2dff49558a344052162565 (diff) | |
download | binutils-redhat-gdb_5_2-branch.tar.gz |
From mainline: 2002-03-06 Jim Blandy <jimb@redhat.com>gdb_5_2_1-2002-07-23-releasegdb_5_2-2002-04-29-releasegdb_5_2-branch
* 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/splay-tree.c')
-rw-r--r-- | libiberty/splay-tree.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libiberty/splay-tree.c b/libiberty/splay-tree.c index f12b4cc500..7999447bc1 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); } |