fix compile warnings
authorJonathan Marshall <jmarshall@xbmc.org>
Fri, 7 Mar 2014 22:34:03 +0000 (11:34 +1300)
committerJonathan Marshall <jmarshall@xbmc.org>
Fri, 7 Mar 2014 22:38:18 +0000 (11:38 +1300)
xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
xbmc/utils/URIUtils.cpp

index 6709993..f5ef16a 100644 (file)
@@ -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;
     }
   }
index 12dadba..fd2eb5a 100644 (file)
@@ -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)
   {