summaryrefslogtreecommitdiffstats
path: root/gcc/cp/errfn.c
diff options
context:
space:
mode:
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 b5d3eeccd5a..a03aacc7bff 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);
}
OpenPOWER on IntegriCloud