commit cdee1d81c4c73113eb293bf2ac816bee53047f36
parent 201881d6ca47150fb4037c9babbcf6717471da60
Author: Quentin Carbonneaux <quentin@c9x.me>
Date: Tue, 2 Mar 2021 08:40:47 +0100
silence a gcc10 warning
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fold.c b/fold.c
@@ -459,7 +459,7 @@ foldflt(Con *res, int op, int w, Con *cl, Con *cr)
if (cl->type != CBits || cr->type != CBits)
err("invalid address operand for '%s'", optab[op].name);
- *res = (Con){CBits};
+ *res = (Con){.type = CBits};
memset(&res->bits, 0, sizeof(res->bits));
if (w) {
ld = cl->bits.d;