Avoid empty initializer list

To zero-initialize an object, use `{0}` instead.

Signed-off-by: Michael Forney <mforney@mforney.org>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Michael Forney 2020-02-05 00:12:21 -08:00 committed by Takashi Iwai
parent 646b3b1c0b
commit cb47f6dcf4
5 changed files with 5 additions and 5 deletions

View file

@ -58,7 +58,7 @@ static void parse_options(int argc, char *argv[])
{ .name = "view", .has_arg = 1, .val = 'V' },
{ .name = "no-color", .val = 'g' },
{ .name = "abstraction", .has_arg = 1, .val = 'a' },
{ }
{ 0 }
};
int option;
int card_index;

View file

@ -469,7 +469,7 @@ int main(int argc, char *argv[])
{"active-sensing", 0, NULL, 'a'},
{"clock", 0, NULL, 'c'},
{"sysex-interval", 1, NULL, 'i'},
{ }
{0}
};
int c, err, ok = 0;
int ignore_active_sensing = 1;

View file

@ -869,7 +869,7 @@ int main(int argc, char *argv[])
{"list", 0, NULL, 'l'},
{"port", 1, NULL, 'p'},
{"delay", 1, NULL, 'd'},
{}
{0}
};
int c;
int do_list = 0;

View file

@ -740,7 +740,7 @@ int main(int argc, char *argv[])
{"metronome", 1, NULL, 'm'},
{"timesig", 1, NULL, 'i'},
{"num-events", 1, NULL, 'n'},
{ }
{0}
};
char *filename = NULL;

View file

@ -357,7 +357,7 @@ int main(int argc, char *argv[])
{"version", 0, NULL, 'V'},
{"list", 0, NULL, 'l'},
{"port", 1, NULL, 'p'},
{ }
{0}
};
int do_list = 0;