This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] -Werror for symtab.c
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 06 Apr 2002 13:28:58 -0500
- Subject: [patch] -Werror for symtab.c
Just FYI,
Committed the attached, my builds kept tripping up.
Andrew
2002-04-06 Andrew Cagney <ac131313@redhat.com>
* symtab.c (lookup_symtab): Remove ``const'' from ``rp''
declaration. Fix -Werror.
Index: symtab.c
===================================================================
RCS file: /cvs/src/src/gdb/symtab.c,v
retrieving revision 1.61
diff -c -r1.61 symtab.c
*** symtab.c 2002/04/05 22:04:41 1.61
--- symtab.c 2002/04/06 18:26:29
***************
*** 181,187 ****
if (real_path != NULL)
{
! const char *rp = gdb_realpath (symtab_to_filename (s));
make_cleanup (xfree, rp);
if (FILENAME_CMP (real_path, rp) == 0)
{
--- 181,187 ----
if (real_path != NULL)
{
! char *rp = gdb_realpath (symtab_to_filename (s));
make_cleanup (xfree, rp);
if (FILENAME_CMP (real_path, rp) == 0)
{