Skip to content
Browse files

cosmetic: silent compiler warnings in XBApplicationEx.cpp when buildi…

…ng with debug
  • Loading branch information...
1 parent c2dca6f commit b0c542295206a775ac3c63d8bde6ab4d63bd95d8 @mkortstiege mkortstiege committed Aug 3, 2012
Showing with 6 additions and 10 deletions.
  1. +6 −10 xbmc/XBApplicationEx.cpp
View
16 xbmc/XBApplicationEx.cpp
@@ -73,14 +73,14 @@ INT CXBApplicationEx::Run(bool renderGUI)
{
CLog::Log(LOGNOTICE, "Running the application..." );
- BYTE processExceptionCount = 0;
- BYTE frameMoveExceptionCount = 0;
- BYTE renderExceptionCount = 0;
unsigned int lastFrameTime = 0;
unsigned int frameTime = 0;
const unsigned int noRenderFrameTime = 15; // Simulates ~66fps
#ifndef _DEBUG
+ BYTE processExceptionCount = 0;
+ BYTE frameMoveExceptionCount = 0;
+ BYTE renderExceptionCount = 0;
const BYTE MAX_EXCEPTION_COUNT = 10;
#endif
@@ -100,9 +100,8 @@ INT CXBApplicationEx::Run(bool renderGUI)
lastFrameTime = XbmcThreads::SystemClockMillis();
Process();
//reset exception count
- processExceptionCount = 0;
-
#ifndef _DEBUG
+ processExceptionCount = 0;
}
catch (...)
@@ -124,9 +123,8 @@ INT CXBApplicationEx::Run(bool renderGUI)
#endif
if (!m_bStop) FrameMove(true, renderGUI);
//reset exception count
- frameMoveExceptionCount = 0;
-
#ifndef _DEBUG
+ frameMoveExceptionCount = 0;
}
catch (...)
@@ -154,12 +152,10 @@ INT CXBApplicationEx::Run(bool renderGUI)
if(frameTime < noRenderFrameTime)
Sleep(noRenderFrameTime - frameTime);
}
-
+#ifndef _DEBUG
//reset exception count
renderExceptionCount = 0;
-#ifndef _DEBUG
-
}
catch (...)
{

0 comments on commit b0c5422

Please sign in to comment.
Something went wrong with that request. Please try again.