diff options
author | wm4 <wm4@nowhere> | 2013-07-23 00:45:23 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-23 00:45:23 +0200 |
commit | e83cbde1a4b816a64cefde1fb8bdbac403079600 (patch) | |
tree | 1ac71b13723174ab48465915fd5e9916faa7df35 /stream/stream_cdda.c | |
parent | 78ebb3c6fa637206bb369349ba93328b36895e2b (diff) | |
download | mpv-e83cbde1a4b816a64cefde1fb8bdbac403079600.tar.bz2 mpv-e83cbde1a4b816a64cefde1fb8bdbac403079600.tar.xz |
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).
Diffstat (limited to 'stream/stream_cdda.c')
-rw-r--r-- | stream/stream_cdda.c | 5 |
1 files changed, 2 insertions, 3 deletions
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) |