Eliminate some warnings found in build testing.

This commit is contained in:
Gregory Nutt 2018-09-16 10:11:51 -06:00
parent cd06134557
commit 2a19aab1a5
3 changed files with 5 additions and 4 deletions

View File

@ -247,7 +247,8 @@ bool CNxToolbar::setPixel(FAR const struct nxgl_point_s *pPos,
return nxtk_setpixel(m_hNxTkWindow, pPos, &color) == OK;
#else
# warning "Revisit"
// REVISIT
return false;
#endif
}

View File

@ -148,7 +148,7 @@ bool CStringIterator::moveToLast(void)
bool CStringIterator::moveToNext(void)
{
if (m_currentIndex < m_pString->getLength() - 1)
if ((unsigned int)m_currentIndex < m_pString->getLength() - 1)
{
m_pCurrentChar++;
m_currentIndex++;
@ -186,7 +186,7 @@ bool CStringIterator::moveTo(int index)
{
// Abort if index exceeds the size of the string
if (index < m_pString->getLength())
if ((unsigned int)index < m_pString->getLength())
{
// Move to the requested position

View File

@ -578,7 +578,7 @@ void CText::wrap(int charIndex)
// Add marker indicating end of text
// If we reached the end of the text, append the stopping point
if (m_linePositions[m_linePositions.size() - 1] != getLength() + 1)
if ((unsigned int)m_linePositions[m_linePositions.size() - 1] != getLength() + 1)
{
m_linePositions.push_back(getLength());
}