From 25f1b00810427752a10456206dc0c5289f997479 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 59c7883fdac..fc0ad95c584 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 05f777b4516..3a4286720e1 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.30.2