warnings: use more 'const' for char *
[fw/openocd] / src / target / arm_disassembler.c
index f02053fb3f1c36c84927f09c8af12074303b9389..10720f45efe19daf33c384b0ef12e4bc2d8cfc6f 100644 (file)
@@ -2354,7 +2354,7 @@ static int evaluate_add_sp_pc_thumb(uint16_t opcode,
        uint8_t Rd = (opcode >> 8) & 0x7;
        uint8_t Rn;
        uint32_t SP = opcode & (1 << 11);
-       char *reg_name;
+       const char *reg_name;
 
        instruction->type = ARM_ADD;