diff options
| author | Michael Matz <matz@suse.de> | 2017-05-08 05:29:54 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2017-05-08 05:29:54 +0200 |
| commit | 524f6dff17af73ec14529e5b0d444dfdda43d7c4 (patch) | |
| tree | d4ea41a25c692a2794580fe578ca5e8272c659ad | |
| parent | 44abffe33a10ee2bdc0d66f87ffa5e178182d6e6 (diff) | |
| download | tinycc-524f6dff17af73ec14529e5b0d444dfdda43d7c4.tar.gz tinycc-524f6dff17af73ec14529e5b0d444dfdda43d7c4.tar.bz2 | |
Fix a warning
"missing intitializer for field op_type" with gcc -Wextra. It's
zero-initialized anyway, and not that much a hassle to explicitely
initialize either, so let's be nice and make it not warn.
| -rw-r--r-- | i386-asm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -225,7 +225,7 @@ static const ASMInstr asm_instrs[] = { /* This constructs instr_type from opcode, type and group. */ #define T(o,i,g) ((i) | ((g) << OPC_GROUP_SHIFT) | ((((o) & 0xff00) == 0x0f00) ? OPC_0F : 0)) #define DEF_ASM_OP0(name, opcode) -#define DEF_ASM_OP0L(name, opcode, group, instr_type) { TOK_ASM_ ## name, O(opcode), T(opcode, instr_type, group), 0 }, +#define DEF_ASM_OP0L(name, opcode, group, instr_type) { TOK_ASM_ ## name, O(opcode), T(opcode, instr_type, group), 0, { 0 } }, #define DEF_ASM_OP1(name, opcode, group, instr_type, op0) { TOK_ASM_ ## name, O(opcode), T(opcode, instr_type, group), 1, { op0 }}, #define DEF_ASM_OP2(name, opcode, group, instr_type, op0, op1) { TOK_ASM_ ## name, O(opcode), T(opcode, instr_type, group), 2, { op0, op1 }}, #define DEF_ASM_OP3(name, opcode, group, instr_type, op0, op1, op2) { TOK_ASM_ ## name, O(opcode), T(opcode, instr_type, group), 3, { op0, op1, op2 }}, |
