diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2017-01-15 13:25:22 -0600 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2017-01-15 23:19:41 -0600 |
commit | e98b6ebfedb1e552dccfbf6529e61d17ccc73a50 (patch) | |
tree | 04ad63d29f048f4c3d44349d77f825b787e54ec2 /parser.y | |
parent | 66b48ad2148360ff92f296ce159bccd00d5001fe (diff) |
nqasm: Fix warnings about missing braces in initializers
Diffstat (limited to 'parser.y')
-rw-r--r-- | parser.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) } %} |