[commit] Fix compiler warnings in arm-tdep.c
Mark Kettenis
mark.kettenis@xs4all.nl
Sun Jun 12 12:57:00 GMT 2005
The prototype for get_arm_regnames() in include/dis-asm.h changed.
This patch adjusts arm-tdep.c accordingly.
Committed as obvious,
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* arm-tdep.c (set_disassembly_style, _initialize_arm_tdep):
Consitify regnames.
Index: arm-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/arm-tdep.c,v
retrieving revision 1.199
diff -u -p -r1.199 arm-tdep.c
--- arm-tdep.c 12 Jun 2005 12:15:31 -0000 1.199
+++ arm-tdep.c 12 Jun 2005 12:56:03 -0000
@@ -2481,7 +2481,7 @@ arm_register_name (int i)
static void
set_disassembly_style (void)
{
- const char *setname, *setdesc, **regnames;
+ const char *setname, *setdesc, *const *regnames;
int numregs, j;
/* Find the style that the user wants in the opcodes table. */
@@ -2875,7 +2875,7 @@ _initialize_arm_tdep (void)
struct cmd_list_element *new_set, *new_show;
const char *setname;
const char *setdesc;
- const char **regnames;
+ const char *const *regnames;
int numregs, i, j;
static char *helptext;
char regdesc[1024], *rdptr = regdesc;
More information about the Gdb-patches
mailing list