Fix compiler warnings by changing "char*" to "const char*".
diff --git a/emulator/qtools/thumbdis.cpp b/emulator/qtools/thumbdis.cpp
index f4294dd..07c482f 100644
--- a/emulator/qtools/thumbdis.cpp
+++ b/emulator/qtools/thumbdis.cpp
@@ -46,7 +46,7 @@
{
unsigned short value, mask; /* recognise instruction if (op&mask)==value */
Opcode opcode;
- char * assembler; /* how to disassemble this instruction */
+ const char * assembler; /* how to disassemble this instruction */
};
/* format of the assembler string :
@@ -216,7 +216,7 @@
#define BDISP23(x,y) ((((((x) & 0x07ff) << 11) | ((y) & 0x07ff)) \
^ 0x200000) - 0x200000) /* 23bit */
-static char * arm_conditional[] =
+static const char * arm_conditional[] =
{"eq", "ne", "cs", "cc", "mi", "pl", "vs", "vc",
"hi", "ls", "ge", "lt", "gt", "le", "", "nv"};
@@ -281,7 +281,7 @@
if ((insn1 & insn->mask) != insn->value)
continue;
- char * c = insn->assembler;
+ const char * c = insn->assembler;
/* Special processing for Thumb 2-instruction BL sequence: */
if (!*c) { /* Check for empty (not NULL) assembler string. */