From af645d54dd2a7a2d0e018c0cc09cd444059fddd2 Mon Sep 17 00:00:00 2001 From: Max Regan Date: Sun, 19 Nov 2017 18:27:55 -0800 Subject: [PATCH] gbasm: make code support gcc -pedantic --- src/gbasm/opcodes.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/gbasm/opcodes.c b/src/gbasm/opcodes.c index eb8ccf9..20e7e4e 100644 --- a/src/gbasm/opcodes.c +++ b/src/gbasm/opcodes.c @@ -210,98 +210,98 @@ size_t ld_emit(struct emitter *emitter, struct gbasm_op_info gbasm_op_infos[] = { { .opcode = "nop", - .operand_types = {}, + .operand_types = {0}, .check = check_no_args, .length = length_one_byte, .emit = nop_emit, }, { .opcode = "halt", - .operand_types = {}, + .operand_types = {0}, .check = check_no_args, .length = length_one_byte, .emit = halt_emit, }, { .opcode = "stop", - .operand_types = {}, + .operand_types = {0}, .check = check_no_args, .length = length_one_byte, .emit = stop_emit, }, { .opcode = "di", - .operand_types = {}, + .operand_types = {0}, .check = check_no_args, .length = length_one_byte, .emit = di_emit, }, { .opcode = "ei", - .operand_types = {}, + .operand_types = {0}, .check = check_no_args, .length = length_one_byte, .emit = ei_emit, }, { .opcode = "rla", - .operand_types = {}, + .operand_types = {0}, .check = check_no_args, .length = length_one_byte, .emit = rla_emit, }, { .opcode = "rra", - .operand_types = {}, + .operand_types = {0}, .check = check_no_args, .length = length_one_byte, .emit = rra_emit, }, { .opcode = "rlca", - .operand_types = {}, + .operand_types = {0}, .check = check_no_args, .length = length_one_byte, .emit = rlca_emit, }, { .opcode = "rrca", - .operand_types = {}, + .operand_types = {0}, .check = check_no_args, .length = length_one_byte, .emit = rrca_emit, }, { .opcode = "daa", - .operand_types = {}, + .operand_types = {0}, .check = check_no_args, .length = length_one_byte, .emit = daa_emit, }, { .opcode = "scf", - .operand_types = {}, + .operand_types = {0}, .check = check_no_args, .length = length_one_byte, .emit = scf_emit, }, { .opcode = "reti", - .operand_types = {}, + .operand_types = {0}, .check = check_no_args, .length = length_one_byte, .emit = reti_emit, }, { .opcode = "cpl", - .operand_types = {}, + .operand_types = {0}, .check = check_no_args, .length = length_one_byte, .emit = cpl_emit, }, { .opcode = "ccf", - .operand_types = {}, + .operand_types = {0}, .check = check_no_args, .length = length_one_byte, .emit = ccf_emit,