diff options
author | wm4 <wm4@nowhere> | 2013-01-15 22:15:55 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-01-16 02:03:21 +0100 |
commit | 07d14bd323dcf8f2da565655aaa009583d296d95 (patch) | |
tree | 2325a28df12bfaa42bc9bce137640006690a679e /stream/stream_cddb.c | |
parent | efcd479e7e6c86f84f7edc912ff4843df5087760 (diff) | |
download | mpv-07d14bd323dcf8f2da565655aaa009583d296d95.tar.bz2 mpv-07d14bd323dcf8f2da565655aaa009583d296d95.tar.xz |
Silence two compiler warnings
Both should be harmless.
Diffstat (limited to 'stream/stream_cddb.c')
-rw-r--r-- | stream/stream_cddb.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/stream/stream_cddb.c b/stream/stream_cddb.c index f0f8f67155..d2ed37deb6 100644 --- a/stream/stream_cddb.c +++ b/stream/stream_cddb.c @@ -857,7 +857,6 @@ cd_info_t *cddb_parse_xmcd(char *xmcd_file) cd_info_t *cd_info = NULL; int length, pos = 0; char *ptr, *ptr2; - unsigned int audiolen; if (xmcd_file == NULL) return NULL; @@ -887,7 +886,7 @@ cd_info_t *cddb_parse_xmcd(char *xmcd_file) ; // Search for a track title else if (xmcd_parse_ttitle(cd_info, ptr)) - audiolen++; // <-- audiolen++ to shut up gcc warning + ; } if (ptr2[1] == '\n') ptr2++; @@ -895,7 +894,7 @@ cd_info_t *cddb_parse_xmcd(char *xmcd_file) ptr = ptr2 + 1; } - audiolen = cdtoc[cd_info->nb_tracks].frame-cdtoc[0].frame; + unsigned int audiolen = cdtoc[cd_info->nb_tracks].frame-cdtoc[0].frame; cd_info->min = (unsigned int) (audiolen / (60 * 75)); cd_info->sec = (unsigned int) ((audiolen / 75) % 60); cd_info->msec = (unsigned int) (audiolen % 75); |