This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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)
  	  {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]