From e83cbde1a4b816a64cefde1fb8bdbac403079600 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 23 Jul 2013 00:45:23 +0200 Subject: Fix some -Wshadow warnings In general, this warning can hint to actual bugs. We don't enable it yet, because it would conflict with some unmerged code, and we should check with clang too (this commit was done by testing with gcc). --- stream/stream_cdda.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'stream/stream_cdda.c') diff --git a/stream/stream_cdda.c b/stream/stream_cdda.c index 670f47e156..f245a6fe94 100644 --- a/stream/stream_cdda.c +++ b/stream/stream_cdda.c @@ -410,9 +410,8 @@ static int open_cdda(stream_t *st, int m, void *opts) offset -= cdda_track_firstsector(cdd, 1); if (offset) { - int i; - for (i = 0; i < cdd->tracks + 1; i++) - cdd->disc_toc[i].dwStartSector += offset; + for (int n = 0; n < cdd->tracks + 1; n++) + cdd->disc_toc[n].dwStartSector += offset; } if (p->speed > 0) -- cgit v1.2.3