quiet some warnings for gcc 4.7

This commit is contained in:
Campbell Barton
2012-03-26 20:49:33 +00:00
parent abf551b1a5
commit 83e83e5eff
3 changed files with 16 additions and 6 deletions

View File

@@ -149,7 +149,12 @@ GHOST_DisplayManager::findMatch(
GHOST_TSuccess success = GHOST_kSuccess;
GHOST_ASSERT(m_settingsInitialized, "GHOST_DisplayManager::findMatch(): m_settingsInitialized=false");
int criteria[4] = { setting.xPixels, setting.yPixels, setting.bpp, setting.frequency };
int criteria[4] = {
(int)setting.xPixels,
(int)setting.yPixels,
(int)setting.bpp,
(int)setting.frequency
};
int capabilities[4];
double field, score;
double best = 1e12; // A big number