From: Uwe Hermann Date: Sat, 24 Jun 2017 16:04:27 +0000 (+0200) Subject: output/csv: Fix a gcc 7 compiler warning. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=317c97bebb67dbbf5e0ce9382655dea7f2038ac3;p=libsigrok.git output/csv: Fix a gcc 7 compiler warning. ../src/output/csv.c: In function ‘receive’: ../src/output/csv.c:580:8: warning: this statement may fall through [-Wimplicit-fallthrough=] *out = g_string_new(ctx->frame); ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/output/csv.c:582:2: note: here case SR_DF_END: ^~~~ --- diff --git a/src/output/csv.c b/src/output/csv.c index 2be4db37..59dcf08c 100644 --- a/src/output/csv.c +++ b/src/output/csv.c @@ -578,7 +578,7 @@ static int receive(const struct sr_output *o, break; case SR_DF_FRAME_BEGIN: *out = g_string_new(ctx->frame); - /* And then fall through to... */ + /* Fallthrough */ case SR_DF_END: /* Got to end of frame/session with part of the data. */ if (ctx->channels_seen)