aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc/cp/ptree.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-08-02 14:57:00 +0000
committerBruce Evans <bde@FreeBSD.org>1998-08-02 14:57:00 +0000
commitd983fa4305a403cbacb7d671b9e389bc7936e99f (patch)
treeae90c9a39acd02e08267cae24725a47dfc90f5b5 /contrib/gcc/cp/ptree.c
parent92f896a9cc76a21ed9bc6b47bc962a1c46743eb2 (diff)
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.
Notes
Notes: svn path=/head/; revision=38021
Diffstat (limited to 'contrib/gcc/cp/ptree.c')
-rw-r--r--contrib/gcc/cp/ptree.c6
1 files changed, 3 insertions, 3 deletions
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));
}
}