summary refs log tree commit diff
path: root/fold.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2021-03-02 08:40:47 +0100
committerQuentin Carbonneaux <quentin@c9x.me>2021-03-02 08:40:47 +0100
commitcdee1d81c4c73113eb293bf2ac816bee53047f36 (patch)
tree7b190d90e520d97acef78d2777c66cf497ecff35 /fold.c
parent201881d6ca47150fb4037c9babbcf6717471da60 (diff)
downloadroux-cdee1d81c4c73113eb293bf2ac816bee53047f36.tar.gz
silence a gcc10 warning
Diffstat (limited to 'fold.c')
-rw-r--r--fold.c2
1 files changed, 1 insertions, 1 deletions
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;