diff options
author | Max Kellermann <max@duempel.org> | 2009-04-01 16:44:27 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-04-01 16:44:27 +0200 |
commit | 6419cc54ac200b217d99ee35d1e2d57dbfda3f55 (patch) | |
tree | db47d8902042b16a0fcb3a915f6ccf3892a70880 /src/decoder | |
parent | 4d9151f842e8e0857d34660562f3b1168fbf48d7 (diff) | |
download | mpd-6419cc54ac200b217d99ee35d1e2d57dbfda3f55.tar.gz mpd-6419cc54ac200b217d99ee35d1e2d57dbfda3f55.tar.xz mpd-6419cc54ac200b217d99ee35d1e2d57dbfda3f55.zip |
flac: fixed "unused variable" warning without libcue
Move the declaration of "i" into the "for" loop.
Diffstat (limited to '')
-rw-r--r-- | src/decoder/flac_plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/flac_plugin.c b/src/decoder/flac_plugin.c index e0a2cfe4c..965a8b46b 100644 --- a/src/decoder/flac_plugin.c +++ b/src/decoder/flac_plugin.c @@ -295,7 +295,6 @@ flac_cue_tag_load(const char *file) struct tag* tag = NULL; char* char_tnum = NULL; char* ptr = NULL; - unsigned int i = 0; unsigned int tnum = 0; unsigned int sample_rate = 0; FLAC__uint64 track_time = 0; @@ -314,7 +313,8 @@ flac_cue_tag_load(const char *file) #ifdef HAVE_CUE /* libcue */ if (FLAC__metadata_get_tags(file, &vc)) { - for (i = 0; i < vc->data.vorbis_comment.num_comments; i++) + for (unsigned i = 0; i < vc->data.vorbis_comment.num_comments; + i++) { if ((ptr = (char*)vc->data.vorbis_comment.comments[i].entry) != NULL) { |