From e98b6ebfedb1e552dccfbf6529e61d17ccc73a50 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Sun, 15 Jan 2017 13:25:22 -0600 Subject: nqasm: Fix warnings about missing braces in initializers --- parser.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parser.y') 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) } %} -- cgit v1.2.3