diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-04-12 16:53:33 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-04-12 16:53:33 +0000 |
commit | 21cf617c69031111357d78c1fe10746fe5ef4f6e (patch) | |
tree | 818029eff9b364d5d0ec7e5fab0dd3a655a144ae /sim/common/dv-sockser.c | |
parent | 0d18d7205b3ab45b0e44465111e178e83c8555da (diff) | |
download | binutils-21cf617c69031111357d78c1fe10746fe5ef4f6e.zip binutils-21cf617c69031111357d78c1fe10746fe5ef4f6e.tar.gz binutils-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/dv-sockser.c')
-rw-r--r-- | sim/common/dv-sockser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/common/dv-sockser.c b/sim/common/dv-sockser.c index 03d49da..1e530e2 100644 --- a/sim/common/dv-sockser.c +++ b/sim/common/dv-sockser.c @@ -104,8 +104,8 @@ static const OPTION sockser_options[] = { { { "sockser-addr", required_argument, NULL, OPTION_ADDR }, '\0', "SOCKET ADDRESS", "Set serial emulation socket address", - sockser_option_handler }, - { { NULL, no_argument, NULL, 0 }, '\0', NULL, NULL, NULL } + sockser_option_handler, NULL }, + { { NULL, no_argument, NULL, 0 }, '\0', NULL, NULL, NULL, NULL } }; static SIM_RC |