From f08b7eee210a6a29c05422b3071627af78846bd3 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Fri, 20 Sep 2002 02:40:51 +0000 Subject: cp-demangle.c (demangling_new): Cast 0 to enum. * cp-demangle.c (demangling_new): Cast 0 to enum. (demangle_char): Cast return of strdup to char *. (is_gnu_v3_mangled_ctor): Cast 0 to enum. (is_gnu_v3_mangled_dtor): Likewise. * cplus-dem.c (grow_vect): Cast return of xrealloc to void *. (work_stuff_copy_to_from): Cast return of xmalloc to char **. * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t. * md5.c (md5_process_bytes): Cast results back to const void *. (md5_process_block): Add cast to const md5_uint32 *. * regex.c (re_compile_fastmap): Cast enum to UCHAR_T. * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to unsigned short. * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc to void *. * vasprintf.c (int_vasprintf): Cast return of malloc to char *. From-SVN: r57330 --- libiberty/splay-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libiberty/splay-tree.c') diff --git a/libiberty/splay-tree.c b/libiberty/splay-tree.c index 3227ed3d3a6..6f90fde05fb 100644 --- a/libiberty/splay-tree.c +++ b/libiberty/splay-tree.c @@ -234,7 +234,7 @@ splay_tree_xmalloc_allocate (size, data) int size; void *data ATTRIBUTE_UNUSED; { - return xmalloc (size); + return (void *) xmalloc (size); } static void -- cgit v1.2.3