Eliminate some warnings found in build testing.
This commit is contained in:
parent
cd06134557
commit
2a19aab1a5
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user