mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +03:00
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:
@ -59,10 +59,10 @@ unsigned int ENC03R::value()
|
||||
|
||||
void ENC03R::calibrate(unsigned int samples)
|
||||
{
|
||||
unsigned int val;
|
||||
int val;
|
||||
float total = 0.0;
|
||||
|
||||
for (int i=0; i<samples; i++)
|
||||
for (unsigned int i=0; i<samples; i++)
|
||||
{
|
||||
val = mraa_aio_read(m_aio);
|
||||
if (val == -1) throw std::out_of_range(std::string(__FUNCTION__) +
|
||||
|
Reference in New Issue
Block a user