Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Dec 2015 14:32:54 +0000 (UTC)
From:      Tony Finch <fanf@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r291697 - head/usr.bin/unifdef
Message-ID:  <201512031432.tB3EWsVt025016@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: fanf
Date: Thu Dec  3 14:32:54 2015
New Revision: 291697
URL: https://svnweb.freebsd.org/changeset/base/291697

Log:
  Avoid -Wmissing-initializer

Modified:
  head/usr.bin/unifdef/unifdef.c

Modified: head/usr.bin/unifdef/unifdef.c
==============================================================================
--- head/usr.bin/unifdef/unifdef.c	Thu Dec  3 14:21:55 2015	(r291696)
+++ head/usr.bin/unifdef/unifdef.c	Thu Dec  3 14:32:54 2015	(r291697)
@@ -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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512031432.tB3EWsVt025016>