]> sigrok.org Git - libsigrok.git/commitdiff
output/csv: Fix a gcc 7 compiler warning.
authorUwe Hermann <redacted>
Sat, 24 Jun 2017 16:04:27 +0000 (18:04 +0200)
committerUwe Hermann <redacted>
Sat, 24 Jun 2017 16:29:26 +0000 (18:29 +0200)
  ../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:
    ^~~~

src/output/csv.c

index 2be4db372f67101ae3241ede4d7d4c2e9ba3b27c..59dcf08cd8b3357ec8e7a6b2703272365e6c3f46 100644 (file)
@@ -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)