From 524f6dff17af73ec14529e5b0d444dfdda43d7c4 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 8 May 2017 05:29:54 +0200 Subject: [PATCH] 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. --- i386-asm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i386-asm.c b/i386-asm.c index 87d14bde..8f459a82 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 }}, -- 2.11.4.GIT