From b04a1a46ff5dee24fe4e609f3f67fb191ba6ec63 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sat, 6 Apr 2002 18:28:20 +0000 Subject: [PATCH] * symtab.c (lookup_symtab): Remove ``const'' from ``rp'' declaration. Fix -Werror. --- gdb/ChangeLog | 5 +++++ gdb/symtab.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 59c7883fda..fc0ad95c58 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-04-06 Andrew Cagney + + * symtab.c (lookup_symtab): Remove ``const'' from ``rp'' + declaration. Fix -Werror. + 2002-04-05 Daniel Jacobowitz * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap. diff --git a/gdb/symtab.c b/gdb/symtab.c index 05f777b451..3a4286720e 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -181,7 +181,7 @@ got_symtab: if (real_path != NULL) { - const char *rp = gdb_realpath (symtab_to_filename (s)); + char *rp = gdb_realpath (symtab_to_filename (s)); make_cleanup (xfree, rp); if (FILENAME_CMP (real_path, rp) == 0) { -- 2.11.0