Fix sign-compare compile warnings in cxx tests.
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
{
mockup::probe_guard mockup_chips({ 4 });
::gpiod::chip chip(mockup::instance().chip_name(0));
- int count = 0;
+ unsigned int count = 0;
for (auto& it: ::gpiod::line_iter(chip))
REQUIRE(it.offset() == count++);
SECTION("bulk iterator works")
{
auto lines = chip.get_all_lines();
- int count = 0;
+ unsigned int count = 0;
for (auto& it: lines)
REQUIRE(it.offset() == count++);