diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-05-01 22:03:05 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-05-08 12:10:27 -0400 |
commit | aac7ce3c8771f8db2fd0492a17fa45e85d449174 (patch) | |
tree | 9b1fbf00ee95d2a47ffba3b626e398f14e45d663 /sim/common | |
parent | 354c317ea40844ae48679b295f4d32417371ec70 (diff) | |
download | gdb-aac7ce3c8771f8db2fd0492a17fa45e85d449174.zip gdb-aac7ce3c8771f8db2fd0492a17fa45e85d449174.tar.gz gdb-aac7ce3c8771f8db2fd0492a17fa45e85d449174.tar.bz2 |
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.
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/ChangeLog | 4 | ||||
-rw-r--r-- | sim/common/cgen-utils.c | 12 |
2 files changed, 10 insertions, 6 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 17cf964..0795a70 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,5 +1,9 @@ 2021-05-08 Mike Frysinger <vapier@gentoo.org> + * cgen-utils.c (virtual_insn_entries): Change {0} to {}. + +2021-05-08 Mike Frysinger <vapier@gentoo.org> + * Make-common.in (html, clean-html, install-html, pdf, clean-pdf, install-pdf): New rules. diff --git a/sim/common/cgen-utils.c b/sim/common/cgen-utils.c index 3d7c282..a22caab 100644 --- a/sim/common/cgen-utils.c +++ b/sim/common/cgen-utils.c @@ -56,22 +56,22 @@ const char * const mode_names[] = { static const CGEN_IBASE virtual_insn_entries[] = { { - VIRTUAL_INSN_X_INVALID, "--invalid--", NULL, 0, { V, { 0 } } + VIRTUAL_INSN_X_INVALID, "--invalid--", NULL, 0, { V, {} } }, { - VIRTUAL_INSN_X_BEFORE, "--before--", NULL, 0, { V, { 0 } } + VIRTUAL_INSN_X_BEFORE, "--before--", NULL, 0, { V, {} } }, { - VIRTUAL_INSN_X_AFTER, "--after--", NULL, 0, { V, { 0 } } + VIRTUAL_INSN_X_AFTER, "--after--", NULL, 0, { V, {} } }, { - VIRTUAL_INSN_X_BEGIN, "--begin--", NULL, 0, { V, { 0 } } + VIRTUAL_INSN_X_BEGIN, "--begin--", NULL, 0, { V, {} } }, { - VIRTUAL_INSN_X_CHAIN, "--chain--", NULL, 0, { V, { 0 } } + VIRTUAL_INSN_X_CHAIN, "--chain--", NULL, 0, { V, {} } }, { - VIRTUAL_INSN_X_CTI_CHAIN, "--cti-chain--", NULL, 0, { V, { 0 } } + VIRTUAL_INSN_X_CTI_CHAIN, "--cti-chain--", NULL, 0, { V, {} } } }; |