[GCC] Warning fixes

This commit is contained in:
Alex Zolotarev 2011-03-09 00:27:54 +00:00 committed by Alex Zolotarev
parent 97af3bdbd5
commit dc051c9f41
6 changed files with 20 additions and 3 deletions

View file

@ -27,7 +27,9 @@ namespace yg
void AreaRenderer::endFrame()
{
if (isDebugging())
{
LOG(LINFO, ("drawing ", m_areasCount, " areas, ", m_trianglesCount, " triangles total"));
}
base_t::endFrame();
}

View file

@ -145,15 +145,23 @@ namespace yg
#ifdef OMIM_GL_ES
GLenum res = glCheckFramebufferStatusOES(GL_FRAMEBUFFER_OES);
if (res == GL_FRAMEBUFFER_UNSUPPORTED_OES)
{
LOG(LINFO, ("unsupported combination of attached target formats. could be possibly skipped"));
}
else if (res != GL_FRAMEBUFFER_COMPLETE_OES)
{
LOG(LERROR, ("incomplete framebuffer"));
}
#else
GLenum res = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT);
if (res == GL_FRAMEBUFFER_UNSUPPORTED)
{
LOG(LINFO, ("unsupported combination of attached target formats. could be possibly skipped"));
}
else if (res != GL_FRAMEBUFFER_COMPLETE_EXT)
{
LOG(LERROR, ("incomplete framebuffer"));
}
#endif
}
}

View file

@ -30,6 +30,8 @@ char const * FT_Error_Description(FT_Error error)
void CheckError(FT_Error error)
{
if (error != 0)
{
LOG(LINFO, ("FT_Error : ", FT_Error_Description(error)));
}
}

View file

@ -137,7 +137,9 @@ namespace yg
{
for (size_t i = 0; i < m_pipelines.size(); ++i)
if ((m_pipelines[i].m_verticesDrawn != 0) || (m_pipelines[i].m_indicesDrawn != 0))
{
LOG(LINFO, ("pipeline #", i, " vertices=", m_pipelines[i].m_verticesDrawn, ", triangles=", m_pipelines[i].m_indicesDrawn / 3));
}
}
base_t::endFrame();

View file

@ -161,8 +161,9 @@ namespace yg
{
ASSERT ( ccIt != charcodes.end(), () );
if ((*ccIt > lastUBEnd) && (*ccIt < ubIt->m_start))
{
LOG(LINFO, ("Symbol with code ", (uint16_t)*ccIt, " present in font lies between two unicode blocks!"));
}
if (ubIt->hasSymbol(*ccIt))
break;
lastUBEnd = ubIt->m_end;
@ -190,8 +191,9 @@ namespace yg
if (ubIt->m_whitelist[i] == fontName)
{
if (ubIt->m_coverage.back() == -1)
{
LOG(LWARNING, ("font ", fontName, "is present both at blacklist and whitelist. whitelist prevails."));
}
/// weight used for sorting are boosted to the top.
/// the order of elements are saved by adding 'i' value as a shift.
ubIt->m_coverage.back() = ubIt->m_end + 1 - ubIt->m_start + i + 1;

View file

@ -259,8 +259,9 @@ namespace yg
void PathRenderer::endFrame()
{
if (isDebugging())
{
LOG(LINFO, ("drawing ", m_pathCount, " pathes, ", m_pointsCount, " points total"));
}
base_t::endFrame();
}
}