From: Bert Vermeulen Date: Tue, 26 Aug 2014 10:38:41 +0000 (+0200) Subject: input: Avoid warnings on all-zero static struct entries. X-Git-Tag: libsigrok-0.4.0~1094 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=06ad20bebf658f97d55cda3ac058f9c336be09df input: Avoid warnings on all-zero static struct entries. --- diff --git a/src/input/binary.c b/src/input/binary.c index 11a3b476..c2f9962c 100644 --- a/src/input/binary.c +++ b/src/input/binary.c @@ -138,7 +138,7 @@ static int cleanup(struct sr_input *in) static struct sr_option options[] = { { "numchannels", "Number of channels", "Number of channels", NULL, NULL }, { "samplerate", "Sample rate", "Sample rate", NULL, NULL }, - { 0 } + ALL_ZERO }; static struct sr_option *get_options(void) diff --git a/src/input/chronovu_la8.c b/src/input/chronovu_la8.c index 7c957feb..9adfe61a 100644 --- a/src/input/chronovu_la8.c +++ b/src/input/chronovu_la8.c @@ -150,7 +150,7 @@ static int cleanup(struct sr_input *in) static struct sr_option options[] = { { "numchannels", "Number of channels", "Number of channels", NULL, NULL }, { "samplerate", "Sample rate", "Sample rate", NULL, NULL }, - { 0 } + ALL_ZERO }; static struct sr_option *get_options(void) diff --git a/src/input/csv.c b/src/input/csv.c index ece68a98..ab0830db 100644 --- a/src/input/csv.c +++ b/src/input/csv.c @@ -767,7 +767,7 @@ static struct sr_option options[] = { { "first-channel", "First channel", "Column number of first channel", NULL, NULL }, { "header", "Header", "Treat first line as header with channel names", NULL, NULL }, { "startline", "Start line", "Line number at which to start processing samples", NULL, NULL }, - { 0 } + ALL_ZERO }; static struct sr_option *get_options(void) diff --git a/src/input/vcd.c b/src/input/vcd.c index cfcecf30..edddb68b 100644 --- a/src/input/vcd.c +++ b/src/input/vcd.c @@ -524,7 +524,7 @@ static struct sr_option options[] = { { "skip", "Skip", "Skip until timestamp", NULL, NULL }, { "downsample", "Downsample", "Divide samplerate by factor", NULL, NULL }, { "compress", "Compress", "Compress idle periods longer than this value", NULL, NULL }, - { 0 } + ALL_ZERO }; static struct sr_option *get_options(void)