From 63d088b75438a51ee0c5b63a801195453ce33cad Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Mon, 22 Jun 1998 05:59:23 +0000 Subject: Warning fixes: * call.c (build_scoped_method_call): Remove unused variable `tmp'. * cp-tree.h (check_dtor_name): Add prototype. * init.c (expand_member_init): Remove unused variables `ptr_type_node', `parm' and `rval'. * ptree.c (print_lang_type): Use HOST_WIDE_INT_PRINT_DEC specifier in call to fprintf. (lang_print_xnode): Likewise. * typeck2.c (enum_name_string): Cast argument to sprintf to long and use %ld specifier. * xref.c (GNU_xref_end_scope): Use HOST_WIDE_INT_PRINT_DEC specifier in call to fprintf. (GNU_xref_member): Cast argument to sprintf to int. From-SVN: r20653 --- gcc/cp/xref.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gcc/cp/xref.c') diff --git a/gcc/cp/xref.c b/gcc/cp/xref.c index 9c530d0..845a446 100644 --- a/gcc/cp/xref.c +++ b/gcc/cp/xref.c @@ -286,8 +286,10 @@ GNU_xref_end_scope (id,inid,prm,keep) else if (keep == 2 || inid != 0) stype = "INTERN"; else stype = "EXTERN"; - fprintf (xref_file,"SCP %s %d %d %d %d %s\n", - filename (xf), xs->start, lineno,xs->lid, inid, stype); + fprintf (xref_file, "SCP %s %d %d %d ", + filename (xf), xs->start, lineno,xs->lid); + fprintf (xref_file, HOST_WIDE_INT_PRINT_DEC, inid); + fprintf (xref_file, " %s\n", stype); if (lxs == NULL) cur_scope = xs->outer; else lxs->outer = xs->outer; @@ -601,7 +603,7 @@ GNU_xref_member(cls, fld) pure = 1; d = IDENTIFIER_POINTER(cls); - sprintf(buf, "%d%s", strlen(d), d); + sprintf(buf, "%d%s", (int) strlen(d), d); #ifdef XREF_SHORT_MEMBER_NAMES i = strlen(buf); #endif -- cgit v1.1