From d983fa4305a403cbacb7d671b9e389bc7936e99f Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sun, 2 Aug 1998 14:57:00 +0000 Subject: Fixed printf format errors. gcc should have a macro HOST_PTR_PRINTF_TYPE to go with its HOST_PTR_PRINTF[_FORMAT], since if %p is wrong for the format then `void *' is probably wrong for the type. --- contrib/gcc/cp/ptree.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'contrib/gcc/cp/ptree.c') diff --git a/contrib/gcc/cp/ptree.c b/contrib/gcc/cp/ptree.c index ad1480a1ed9d..45244225aadc 100644 --- a/contrib/gcc/cp/ptree.c +++ b/contrib/gcc/cp/ptree.c @@ -46,17 +46,17 @@ print_lang_decl (file, node, indent) if (DECL_MAIN_VARIANT (node)) { fprintf (file, " decl-main-variant "); - fprintf (file, HOST_PTR_PRINTF, DECL_MAIN_VARIANT (node)); + fprintf (file, HOST_PTR_PRINTF, (void *) DECL_MAIN_VARIANT (node)); } if (DECL_PENDING_INLINE_INFO (node)) { fprintf (file, " pending-inline-info "); - fprintf (file, HOST_PTR_PRINTF, DECL_PENDING_INLINE_INFO (node)); + fprintf (file, HOST_PTR_PRINTF, (void *) DECL_PENDING_INLINE_INFO (node)); } if (DECL_TEMPLATE_INFO (node)) { fprintf (file, " template-info "); - fprintf (file, HOST_PTR_PRINTF, DECL_TEMPLATE_INFO (node)); + fprintf (file, HOST_PTR_PRINTF, (void *) DECL_TEMPLATE_INFO (node)); } } -- cgit v1.2.3