From: jimb Date: Thu, 7 Mar 2002 00:20:12 +0000 (+0000) Subject: * splay-tree.c (splay_tree_xmalloc_allocate, X-Git-Tag: upstream/4.9.2~88264 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc95356d6117bfb31d883dec50e01dce05f41aff;p=platform%2Fupstream%2Flinaro-gcc.git * splay-tree.c (splay_tree_xmalloc_allocate, splay_tree_xmalloc_deallocate): Use K&R-style definitions, not prototyped definitions. Mark `data' arguments as unused. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50384 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 51ac024..ab09bed 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,9 @@ +2002-03-06 Jim Blandy + + * 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 * floatformat.c (floatformat_arm_ext_big): Delete definition. 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); }