Initialize empty structs explictly to build on MSVC

This commit is contained in:
mio
2021-12-30 00:51:07 +01:00
parent 03f9dd8b61
commit a72cbda6de
5 changed files with 12 additions and 12 deletions

View File

@@ -1132,7 +1132,7 @@ typedef struct DisasFormatInfo {
#define I(N, B, S) { B, S, 1, FLD_C_i##N, FLD_O_i##N }
#define L(N, B, S) { B, S, 0, FLD_C_l##N, FLD_O_l##N }
#define F0(N) { { } },
#define F0(N) { { 0 } },
#define F1(N, X1) { { X1 } },
#define F2(N, X1, X2) { { X1, X2 } },
#define F3(N, X1, X2, X3) { { X1, X2, X3 } },
@@ -6675,7 +6675,7 @@ static DisasJumpType translate_one(CPUS390XState *env, DisasContext *s)
TCGContext *tcg_ctx = s->uc->tcg_ctx;
const DisasInsn *insn;
DisasJumpType ret = DISAS_NEXT;
DisasOps o = {};
DisasOps o = { 0 };
/* Search for the insn in the table. */
insn = extract_insn(env, s);