aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-watch.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-watch.c
parent0d18d7205b3ab45b0e44465111e178e83c8555da (diff)
downloadfsf-binutils-gdb-21cf617c69031111357d78c1fe10746fe5ef4f6e.zip
fsf-binutils-gdb-21cf617c69031111357d78c1fe10746fe5ef4f6e.tar.gz
fsf-binutils-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-watch.c')
-rw-r--r--sim/common/sim-watch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/common/sim-watch.c b/sim/common/sim-watch.c
index 17125af..1bf2703 100644
--- a/sim/common/sim-watch.c
+++ b/sim/common/sim-watch.c
@@ -372,13 +372,13 @@ static const OPTION watchpoint_options[] =
{
{ {"watch-delete", required_argument, NULL, OPTION_WATCH_DELETE },
'\0', "IDENT|all|pc|cycles|clock", "Delete a watchpoint",
- watchpoint_option_handler },
+ watchpoint_option_handler, NULL },
{ {"watch-info", no_argument, NULL, OPTION_WATCH_INFO },
'\0', NULL, "List scheduled watchpoints",
- watchpoint_option_handler },
+ watchpoint_option_handler, NULL },
- { {NULL, no_argument, NULL, 0}, '\0', NULL, NULL, NULL }
+ { {NULL, no_argument, NULL, 0}, '\0', NULL, NULL, NULL, NULL }
};
static const char *default_interrupt_names[] = { "int", 0, };