aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/errfn.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-08-07 22:28:52 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-08-07 22:28:52 +0000
commit9c0758dde6fff7bf6350eedda3dd9db427a44fcb (patch)
tree0f54214cb42ac2e74f8470e2a2880e6f8cd2a66c /gcc/cp/errfn.c
parentb5df0cedb5cbc98b8d791e3297eff2321959e2d3 (diff)
downloadgcc-9c0758dde6fff7bf6350eedda3dd9db427a44fcb.zip
gcc-9c0758dde6fff7bf6350eedda3dd9db427a44fcb.tar.gz
gcc-9c0758dde6fff7bf6350eedda3dd9db427a44fcb.tar.bz2
class.c (count_fields, [...]): Add static prototype.
* class.c (count_fields, add_fields_to_vec): Add static prototype. * cp-tree.h (opname_tab, assignop_tab, operator_name_string, get_id_2, composite_pointer_type, dump_node_to_file): Constify a char*. * decl.c (named_label_list, cp_finish_decl, grokdeclarator): Constify a char*. * decl2.c (finish_static_data_member_decl, grokfield): Constify a char*. * dump.c (queue_and_dump_index, dump_int, dump_string, dump_string_field, dequeue_and_dump, dump_node_to_file): Constify a char*. (dump_stmt): Add static prototype. * errfn.c (cp_thing): Constify a char*. * error.c (dump_unary_op, dump_binary_op, aggr_variety, dump_aggr_type, dump_global_iord, dump_decl, dump_function_name, dump_expr): Constify a char*. * lex.c (extend_token_buffer_to, pragma_getc, pragma_ungetc, read_line_number): Add static prototype. (opname_tab, assignop_tab, operator_name_string): Constify a char*. (real_yylex): Move label `letter' into the scope where it is used. * method.c (build_mangled_template_parm_index, build_overload_int, build_decl_overload_real, get_id_2): Constify a char*. * search.c (check_final_overrider): Make static. * typeck.c (composite_pointer_type): Constify a char*. From-SVN: r28588
Diffstat (limited to 'gcc/cp/errfn.c')
-rw-r--r--gcc/cp/errfn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/errfn.c b/gcc/cp/errfn.c
index b5d3eec..a03aacc 100644
--- a/gcc/cp/errfn.c
+++ b/gcc/cp/errfn.c
@@ -106,7 +106,7 @@ cp_thing (errfn, atarg1, format, ap)
if (function || *f == 's')
{
- char *p;
+ const char *p;
int plen;
if (*f == 's')
@@ -180,7 +180,7 @@ cp_thing (errfn, atarg1, format, ap)
if (atarg)
{
- char *file = cp_file_of (atarg);
+ const char *file = cp_file_of (atarg);
int line = cp_line_of (atarg);
(*errfn) (file, line, "%s", buf);
}