diff options
author | fanf <fanf@FreeBSD.org> | 2015-12-03 14:32:54 +0000 |
---|---|---|
committer | fanf <fanf@FreeBSD.org> | 2015-12-03 14:32:54 +0000 |
commit | e7de26bca33f0108d7fc505500b6f7c5c8f6e62d (patch) | |
tree | 752068fdb2642c56082076a751037ec575f8132b /usr.bin/unifdef | |
parent | 15414f06cb2f824220be6b057d4d656f9e49706a (diff) | |
download | FreeBSD-src-e7de26bca33f0108d7fc505500b6f7c5c8f6e62d.zip FreeBSD-src-e7de26bca33f0108d7fc505500b6f7c5c8f6e62d.tar.gz |
Avoid -Wmissing-initializer
Diffstat (limited to 'usr.bin/unifdef')
-rw-r--r-- | usr.bin/unifdef/unifdef.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/usr.bin/unifdef/unifdef.c b/usr.bin/unifdef/unifdef.c index 2e0182a..4a28ed4 100644 --- a/usr.bin/unifdef/unifdef.c +++ b/usr.bin/unifdef/unifdef.c @@ -975,24 +975,24 @@ struct ops { struct op op[5]; }; static const struct ops eval_ops[] = { - { eval_table, { { "||", op_or } } }, - { eval_table, { { "&&", op_and } } }, + { eval_table, { { "||", op_or, NULL } } }, + { eval_table, { { "&&", op_and, NULL } } }, { eval_table, { { "|", op_bor, "|" } } }, - { eval_table, { { "^", op_bxor } } }, + { eval_table, { { "^", op_bxor, NULL } } }, { eval_table, { { "&", op_band, "&" } } }, - { eval_table, { { "==", op_eq }, - { "!=", op_ne } } }, - { eval_table, { { "<=", op_le }, - { ">=", op_ge }, + { eval_table, { { "==", op_eq, NULL }, + { "!=", op_ne, NULL } } }, + { eval_table, { { "<=", op_le, NULL }, + { ">=", op_ge, NULL }, { "<", op_lt, "<=" }, { ">", op_gt, ">=" } } }, - { eval_table, { { "<<", op_blsh }, - { ">>", op_brsh } } }, - { eval_table, { { "+", op_add }, - { "-", op_sub } } }, - { eval_unary, { { "*", op_mul }, - { "/", op_div }, - { "%", op_mod } } }, + { eval_table, { { "<<", op_blsh, NULL }, + { ">>", op_brsh, NULL } } }, + { eval_table, { { "+", op_add, NULL }, + { "-", op_sub, NULL } } }, + { eval_unary, { { "*", op_mul, NULL }, + { "/", op_div, NULL }, + { "%", op_mod, NULL } } }, }; /* Current operator precedence level */ |