summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2017-01-15 13:25:22 -0600
committerBobby Bingham <koorogi@koorogi.info>2017-01-15 23:19:41 -0600
commite98b6ebfedb1e552dccfbf6529e61d17ccc73a50 (patch)
tree04ad63d29f048f4c3d44349d77f825b787e54ec2
parent66b48ad2148360ff92f296ce159bccd00d5001fe (diff)
nqasm: Fix warnings about missing braces in initializers
-rw-r--r--parser.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser.y b/parser.y
index 4396fd1..76748de 100644
--- a/parser.y
+++ b/parser.y
@@ -12,8 +12,8 @@ void yyerror(const char *msg)
#define INSTRUCTION_ARGS(m,a) (struct instruction) { MNEM_ ## m, a }
#define INSTRUCTION(m) (struct instruction) { MNEM_ ## m }
-#define MKARGS(...) (struct arguments) { __VA_ARGS__ }
-#define MKARGVALUE(v) (struct argument) { (v) }
+#define MKARGS(...) (struct arguments) { { __VA_ARGS__ } }
+#define MKARGVALUE(v) (struct argument) { .value = (v) }
%}