From: Kaveh R. Ghazi Date: Thu, 18 Feb 1999 20:44:21 +0000 (+0000) Subject: cp-tree.h (lvalue_or_else): Qualify a char* with the `const' keyword to match an... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=834003f492621d42fdfd3352af16fe9231189b00;p=gcc.git cp-tree.h (lvalue_or_else): Qualify a char* with the `const' keyword to match an analogous change at the... * cp-tree.h (lvalue_or_else): Qualify a char* with the `const' keyword to match an analogous change at the top level. * tree.c (lvalue_or_else): Likewise. From-SVN: r25297 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index d7dc23563cd..38b713d5df4 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,10 @@ +Thu Feb 18 23:40:01 1999 Kaveh R. Ghazi + + * cp-tree.h (lvalue_or_else): Qualify a char* with the `const' + keyword to match an analogous change at the top level. + + * tree.c (lvalue_or_else): Likewise. + 1999-02-17 Mark Mitchell * decl.c (xref_basetypes): Comment. diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index bbb0adffffb..d91149c9ae4 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -3245,7 +3245,7 @@ extern tree build_min PVPROTO((enum tree_code, tree, ...)); extern tree build_min_nt PVPROTO((enum tree_code, ...)); extern tree min_tree_cons PROTO((tree, tree, tree)); extern int lvalue_p PROTO((tree)); -extern int lvalue_or_else PROTO((tree, char *)); +extern int lvalue_or_else PROTO((tree, const char *)); extern tree build_cplus_new PROTO((tree, tree)); extern tree get_target_expr PROTO((tree)); extern tree break_out_cleanups PROTO((tree)); diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index bc5a18eba7d..323532a3ea0 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -171,7 +171,7 @@ lvalue_p (ref) int lvalue_or_else (ref, string) tree ref; - char *string; + const char *string; { int win = lvalue_p (ref); if (! win)