Wsign-compare: Fixed all sign compare warnings in src

This commit addresses all warnings emitted from -Wunused-function
in the C++ src.

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck
2016-11-02 22:26:41 -07:00
parent 1dd5cbb445
commit ae9b8fb13e
15 changed files with 28 additions and 27 deletions

View File

@@ -77,12 +77,12 @@ void GroveCircularLED::setLevel(uint8_t level, bool direction)
if (!direction)
{
for (int i=0; i<(LEDS_PER_INSTANCE * m_instances); i++)
for (int i=0; i < static_cast<int>(LEDS_PER_INSTANCE * m_instances); i++)
m_bitStates[i] = (i < level) ? m_highIntensity : m_lowIntensity;
}
else
{
for (int i=0; i<(LEDS_PER_INSTANCE * m_instances); i++)
for (int i=0; i< static_cast<int>(LEDS_PER_INSTANCE * m_instances); i++)
m_bitStates[i] = (((LEDS_PER_INSTANCE * m_instances) - i) <= level)
? m_highIntensity : m_lowIntensity;
}