From 91c6c78d7750979056431e5a737e24039d6a699e Mon Sep 17 00:00:00 2001 From: Jonathan Marshall Date: Sat, 8 Mar 2014 11:34:03 +1300 Subject: [PATCH] fix compile warnings --- xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp | 2 +- xbmc/utils/URIUtils.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp b/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp index 6709993..f5ef16a 100644 --- a/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp +++ b/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp @@ -956,7 +956,7 @@ void CActiveAE::Configure(AEAudioFormat *desiredFmt) unsigned int buffertime = m_sinkFormat.m_frames / m_sinkFormat.m_sampleRate; if (buffertime > MAX_BUFFER_TIME) { - CLog::Log(LOGWARNING, "ActiveAE::%s - sink returned large buffer of %d ms, reducing to %d ms", __FUNCTION__, buffertime, MAX_BUFFER_TIME*1000); + CLog::Log(LOGWARNING, "ActiveAE::%s - sink returned large buffer of %d ms, reducing to %d ms", __FUNCTION__, buffertime, (int)(MAX_BUFFER_TIME*1000)); m_sinkFormat.m_frames = MAX_BUFFER_TIME * m_sinkFormat.m_sampleRate; } } diff --git a/xbmc/utils/URIUtils.cpp b/xbmc/utils/URIUtils.cpp index 12dadba..fd2eb5a 100644 --- a/xbmc/utils/URIUtils.cpp +++ b/xbmc/utils/URIUtils.cpp @@ -1224,7 +1224,6 @@ std::string URIUtils::resolvePath(const std::string &path) } CStdString realPath; - int i = 0; // re-add any / or \ at the beginning for (std::string::const_iterator itPath = path.begin(); itPath != path.end(); ++itPath) { -- 2.7.4