flacdec: Avoid declaration after statement.
authorAndre Noll <maan@systemlinux.org>
Mon, 22 Jul 2013 23:19:52 +0000 (01:19 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 27 Oct 2013 08:40:10 +0000 (09:40 +0100)
Fixes

flacdec_filter.c:243:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]

flacdec_filter.c

index 621d50d..4220b5d 100644 (file)
@@ -222,6 +222,7 @@ static int flacdec_post_select(__a_unused struct sched *s, struct task *t)
        struct private_flacdec_data *pfd = fn->private_data;
        struct btr_node *btrn = fn->btrn;
        int ret;
+       FLAC__StreamDecoderState state;
 
        if (output_queue_full(btrn))
                return 0;
@@ -240,7 +241,6 @@ static int flacdec_post_select(__a_unused struct sched *s, struct task *t)
                goto out;
        }
        pfd->have_more = false;
-       FLAC__StreamDecoderState state;
        FLAC__stream_decoder_process_single(pfd->decoder);
        state = FLAC__stream_decoder_get_state(pfd->decoder);
        ret = -E_FLACDEC_EOF;