aboutsummaryrefslogtreecommitdiff
path: root/i386-asm.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2017-05-08 05:29:54 +0200
committerMichael Matz <matz@suse.de>2017-05-08 05:29:54 +0200
commit524f6dff17af73ec14529e5b0d444dfdda43d7c4 (patch)
treed4ea41a25c692a2794580fe578ca5e8272c659ad /i386-asm.c
parent44abffe33a10ee2bdc0d66f87ffa5e178182d6e6 (diff)
downloadtinycc-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.
Diffstat (limited to 'i386-asm.c')
-rw-r--r--i386-asm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/i386-asm.c b/i386-asm.c
index 87d14bd..8f459a8 100644
--- a/i386-asm.c
+++ b/i386-asm.c
@@ -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 }},