From d705b54198ed8a9939e5e22af19849d8ba7c32d9 Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Tue, 6 May 2014 19:35:02 +0200 Subject: [PATCH] Clean up unused variable after clang static analyzer run --- src/modules/sound/lullaby/Mpg123Decoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/sound/lullaby/Mpg123Decoder.cpp b/src/modules/sound/lullaby/Mpg123Decoder.cpp index a89b3ef68..01dc6c83f 100644 --- a/src/modules/sound/lullaby/Mpg123Decoder.cpp +++ b/src/modules/sound/lullaby/Mpg123Decoder.cpp @@ -117,7 +117,7 @@ int Mpg123Decoder::decode() size += numbytes; long rate = 0; int encoding = 0; - int ret = mpg123_getformat(handle, &rate, &channels, &encoding); + mpg123_getformat(handle, &rate, &channels, &encoding); if (rate == 0) rate = sampleRate; else @@ -126,7 +126,7 @@ int Mpg123Decoder::decode() channels = MPG123_STEREO; if (encoding == 0) encoding = MPG123_ENC_SIGNED_16; - ret = mpg123_format(handle, rate, channels, encoding); + int ret = mpg123_format(handle, rate, channels, encoding); if (ret != MPG123_OK) throw love::Exception("Could not set output format."); }