diff options
author | Nick Clifton <nickc@redhat.com> | 2001-10-09 08:54:58 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-10-09 08:54:58 +0000 |
commit | 5535cb4a887af6e4fb8da2ab4fef2731a05b1dd9 (patch) | |
tree | 3ffc37c6c69741db9544cfdd572d80d0d4c66bf0 /opcodes/cgen-asm.in | |
parent | f1bffdafb9d51746d4a92616d491a1fc2fa9c8bc (diff) | |
download | gdb-5535cb4a887af6e4fb8da2ab4fef2731a05b1dd9.tar.gz |
Fix compile time warnings in cgen-generated files
Diffstat (limited to 'opcodes/cgen-asm.in')
-rw-r--r-- | opcodes/cgen-asm.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/opcodes/cgen-asm.in b/opcodes/cgen-asm.in index 20380a29795..936c635e311 100644 --- a/opcodes/cgen-asm.in +++ b/opcodes/cgen-asm.in @@ -35,6 +35,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., #include "@prefix@-opc.h" #include "opintl.h" #include "xregex.h" +#include "libiberty.h" #undef min #define min(a,b) ((a) < (b) ? (a) : (b)) @@ -57,14 +58,13 @@ static const char * parse_insn_normal It then compiles the regex and stores it in the opcode, for later use by @arch@_cgen_assemble_insn - returns NULL for success, an error message for failure -*/ + Returns NULL for success, an error message for failure. */ char * @arch@_cgen_build_insn_regex (insn) CGEN_INSN *insn; { - CGEN_OPCODE *opc = CGEN_INSN_OPCODE (insn); + CGEN_OPCODE *opc = (CGEN_OPCODE *) CGEN_INSN_OPCODE (insn); const char *mnem = CGEN_INSN_MNEMONIC (insn); int mnem_len; char rxbuf[CGEN_MAX_RX_ELEMENTS]; |