From cdee1d81c4c73113eb293bf2ac816bee53047f36 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Tue, 2 Mar 2021 08:40:47 +0100 Subject: silence a gcc10 warning --- fold.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fold.c') diff --git a/fold.c b/fold.c index 5344cf4..2081a72 100644 --- 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; -- cgit 1.4.1