This is the mail archive of the gdb-patches@sourceware.org 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] Remove duplicate const


Looks like Joel was a bit too const-happy ;) 

GCC 3.3.5 warns about this and since we compile with -Werror...

Committed as obvious.

Mark


Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.9294
diff -u -p -r1.9294 ChangeLog
--- ChangeLog	19 Apr 2008 06:07:51 -0000	1.9294
+++ ChangeLog	19 Apr 2008 11:30:02 -0000
@@ -1,3 +1,9 @@
+2008-04-19  Mark Kettenis  <kettenis@gnu.org>
+
+	* symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
+	(multiple_symbols_cancel): Remove extra const.
+	* symtab.h: Likewise.
+
 2008-04-19  Nick Roberts  <nickrob@snap.net.nz>
 
 	* interps.c (top_level_interpreter): Rename static variable...
Index: symtab.c
===================================================================
RCS file: /cvs/src/src/gdb/symtab.c,v
retrieving revision 1.176
diff -u -p -r1.176 symtab.c
--- symtab.c	6 Apr 2008 08:56:36 -0000	1.176
+++ symtab.c	19 Apr 2008 11:30:04 -0000
@@ -128,9 +128,9 @@ void _initialize_symtab (void);
    to multiple-choice menus when more than one symbol matches during
    a symbol lookup.  */
 
-const char const multiple_symbols_ask[] = "ask";
-const char const multiple_symbols_all[] = "all";
-const char const multiple_symbols_cancel[] = "cancel";
+const char multiple_symbols_ask[] = "ask";
+const char multiple_symbols_all[] = "all";
+const char multiple_symbols_cancel[] = "cancel";
 static const char *multiple_symbols_modes[] =
 {
   multiple_symbols_ask,
Index: symtab.h
===================================================================
RCS file: /cvs/src/src/gdb/symtab.h,v
retrieving revision 1.114
diff -u -p -r1.114 symtab.h
--- symtab.h	3 Apr 2008 21:39:16 -0000	1.114
+++ symtab.h	19 Apr 2008 11:30:05 -0000
@@ -998,9 +998,9 @@ extern int asm_demangle;
 
 /* symtab.c lookup functions */
 
-extern const char const multiple_symbols_ask[];
-extern const char const multiple_symbols_all[];
-extern const char const multiple_symbols_cancel[];
+extern const char multiple_symbols_ask[];
+extern const char multiple_symbols_all[];
+extern const char multiple_symbols_cancel[];
 
 const char *multiple_symbols_select_mode (void);
 


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