diff options
author | Jim Blandy <jimb@codesourcery.com> | 2002-03-07 00:16:50 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2002-03-07 00:16:50 +0000 |
commit | 013dbf93cb62dc9c50ea3eef80bb064d1bb6795d (patch) | |
tree | e355142f99c3c60be60f315194a13c8faa7901bb /libiberty | |
parent | 39ae36f1a3cce8f699e2fc424bccc8050f9babfc (diff) | |
download | gdb-013dbf93cb62dc9c50ea3eef80bb064d1bb6795d.tar.gz |
* 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 | 6 | ||||
-rw-r--r-- | libiberty/splay-tree.c | 8 |
2 files changed, 12 insertions, 2 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index acc26ea573f..3684ff74884 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,9 @@ +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-03-06 Andrew Cagney <ac131313@redhat.com> * floatformat.c (floatformat_arm_ext_big): Delete definition. diff --git a/libiberty/splay-tree.c b/libiberty/splay-tree.c index f12b4cc5007..7999447bc11 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); } |