diff options
Diffstat (limited to 'gdb/rust-exp.y')
-rw-r--r-- | gdb/rust-exp.y | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/rust-exp.y b/gdb/rust-exp.y index 9f21498d4c9..b60997681ae 100644 --- a/gdb/rust-exp.y +++ b/gdb/rust-exp.y @@ -70,6 +70,7 @@ struct set_field typedef std::vector<set_field> rust_set_vector; static int rustyylex (void); +static void rustyyerror (const char *msg); static void rust_push_back (char c); static const char *rust_copy_name (const char *, int); static struct stoken rust_concat3 (const char *, const char *, const char *); @@ -2538,11 +2539,11 @@ rust_parse (struct parser_state *state) /* The parser error handler. */ -void +static void rustyyerror (const char *msg) { const char *where = prev_lexptr ? prev_lexptr : lexptr; - error (_("%s in expression, near `%s'."), (msg ? msg : "Error"), where); + error (_("%s in expression, near `%s'."), msg, where); } |