]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - sim/common/ChangeLog
sim: cgen: tweak initializers to avoid warnings
authorMike Frysinger <vapier@gentoo.org>
Sun, 2 May 2021 02:03:05 +0000 (22:03 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 8 May 2021 16:10:27 +0000 (12:10 -0400)
commitaac7ce3c8771f8db2fd0492a17fa45e85d449174
tree9b1fbf00ee95d2a47ffba3b626e398f14e45d663
parent354c317ea40844ae48679b295f4d32417371ec70
sim: cgen: tweak initializers to avoid warnings

Use {} instead of {0} to avoid warnings:

common/cgen-utils.c:59:1: warning: missing braces around initializer [-Wmissing-braces]
   59 | {
      | ^
   60 |   {
   61 |     VIRTUAL_INSN_X_INVALID, "--invalid--", NULL, 0, { V, { 0 } }
      |                                                            {{}}

Generated code should be the same.
sim/common/ChangeLog
sim/common/cgen-utils.c