From ce1cc601f552748bf58e8d8367b3c46b31b4c29b Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Sun, 19 Nov 2000 13:15:51 +0000 Subject: Warning fixes: * builtins.c (c_getstr): Constify variable. * gmon-sol2.c (_mcleanup): Comment out #endif labels. * conflict.c (const_conflict_graph_arc): New typedef. (arc_hash, arc_eq): Avoid needlessly casting away const-ness. * cppmacro.c (builtin_macro): Likewise. * dwarf2out.c (output_comp_unit): Constify variable. * fix-header.c (v_fatal): Add ATTRIBUTE_PRINTF. * protoize.c (IS_SAME_PATH_CHAR): Use TOUPPER, not toupper. * ssa.c (ssa_rename_from_hash_function): Avoid needlessly casting away const-ness. * tradcpp.c (rescan, do_line, macroexpand, macarg): Use ISALNUM/ISDIGIT/ISPRINT, not isalnum/isdigit/isprint. * varasm.c (const_str_htab_hash, const_str_htab_eq, compare_constant_1, record_constant_1): Constify. From-SVN: r37565 --- gcc/cppmacro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cppmacro.c') diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c index fcaa7c6..978f4cb 100644 --- a/gcc/cppmacro.c +++ b/gcc/cppmacro.c @@ -170,7 +170,7 @@ builtin_macro (pfile, token) file = ip->nominal_fname; } make_string_token (pfile->string_pool, token, - (U_CHAR *) file, strlen (file)); + (const U_CHAR *) file, strlen (file)); } break; -- cgit v1.1