mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
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>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user