aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-hw.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-04-12 16:53:33 +0000
committerMike Frysinger <vapier@gentoo.org>2010-04-12 16:53:33 +0000
commit21cf617c69031111357d78c1fe10746fe5ef4f6e (patch)
tree818029eff9b364d5d0ec7e5fab0dd3a655a144ae /sim/common/sim-hw.c
parent0d18d7205b3ab45b0e44465111e178e83c8555da (diff)
downloadgdb-21cf617c69031111357d78c1fe10746fe5ef4f6e.zip
gdb-21cf617c69031111357d78c1fe10746fe5ef4f6e.tar.gz
gdb-21cf617c69031111357d78c1fe10746fe5ef4f6e.tar.bz2
sim: add missing values to array initializers
The sim code has a lot of static initializer for options and devices, but since they aren't using newer struct style, they have to specify a value for every option otherwise gcc spits a lot of warnings about "missing initializer". So add NULL/0 stubs for pointers/values. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim/common/sim-hw.c')
-rw-r--r--sim/common/sim-hw.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sim/common/sim-hw.c b/sim/common/sim-hw.c
index 7481492..6b6b221 100644
--- a/sim/common/sim-hw.c
+++ b/sim/common/sim-hw.c
@@ -110,31 +110,31 @@ static const OPTION hw_options[] =
{
{ {"hw-info", no_argument, NULL, OPTION_HW_INFO },
'\0', NULL, "List configurable hw regions",
- hw_option_handler },
+ hw_option_handler, NULL },
{ {"info-hw", no_argument, NULL, OPTION_HW_INFO },
'\0', NULL, NULL,
- hw_option_handler },
+ hw_option_handler, NULL },
{ {"hw-trace", optional_argument, NULL, OPTION_HW_TRACE },
'\0', "on|off", "Trace all hardware devices",
- hw_option_handler },
+ hw_option_handler, NULL },
{ {"trace-hw", optional_argument, NULL, OPTION_HW_TRACE },
'\0', NULL, NULL,
- hw_option_handler },
+ hw_option_handler, NULL },
{ {"hw-device", required_argument, NULL, OPTION_HW_DEVICE },
'\0', "DEVICE", "Add the specified device",
- hw_option_handler },
+ hw_option_handler, NULL },
{ {"hw-list", no_argument, NULL, OPTION_HW_LIST },
'\0', NULL, "List the device tree",
- hw_option_handler },
+ hw_option_handler, NULL },
{ {"hw-file", required_argument, NULL, OPTION_HW_FILE },
'\0', "FILE", "Add the devices listed in the file",
- hw_option_handler },
+ hw_option_handler, NULL },
- { {NULL, no_argument, NULL, 0}, '\0', NULL, NULL, NULL }
+ { {NULL, no_argument, NULL, 0}, '\0', NULL, NULL, NULL, NULL }
};