From 81919cc85b6918763a63b3e74a71e0c1aeabbb12 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Fri, 26 Apr 1991 22:57:07 +0000 Subject: * vax-opcode.h, expread.y, expprint.c, cplus-dem.c: Declare some things "const". --- gdb/expprint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/expprint.c') diff --git a/gdb/expprint.c b/gdb/expprint.c index 9e1e9d2..e001378 100644 --- a/gdb/expprint.c +++ b/gdb/expprint.c @@ -50,7 +50,7 @@ struct op_print int right_assoc; }; -static struct op_print op_print_tab[] = +const static struct op_print op_print_tab[] = { {",", BINOP_COMMA, PREC_COMMA, 0}, {"=", BINOP_ASSIGN, PREC_ASSIGN, 1}, @@ -275,6 +275,7 @@ print_subexp (exp, pos, stream, prec) op_str = op_print_tab[tem].string; break; } + break; case OP_THIS: ++(*pos); -- cgit v1.1