diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1998-06-22 05:59:23 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1998-06-22 05:59:23 +0000 |
commit | 63d088b75438a51ee0c5b63a801195453ce33cad (patch) | |
tree | 4f4fbbdafef4b61973a70c1c70e0a549f8ad8ba7 /gcc/cp/xref.c | |
parent | b3fb0b5e507318e1e89d170acf5ac63e8bd63c80 (diff) | |
download | gcc-63d088b75438a51ee0c5b63a801195453ce33cad.zip gcc-63d088b75438a51ee0c5b63a801195453ce33cad.tar.gz gcc-63d088b75438a51ee0c5b63a801195453ce33cad.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/xref.c')
-rw-r--r-- | gcc/cp/xref.c | 8 |
1 files changed, 5 insertions, 3 deletions
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 |