summaryrefslogtreecommitdiff
path: root/unittest/test_offline.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-04-19 11:59:12 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2018-04-19 12:11:09 +0200
commitbc4e9c7bcfd7d7b3f62b23e583ef216a05975e80 (patch)
tree6fdeea27d6b55e713554216b00b6922d3451a504 /unittest/test_offline.cc
parent5b36f06f49c88fb1921da18f54524081729cb4d5 (diff)
downloadlibnitrokey-bc4e9c7bcfd7d7b3f62b23e583ef216a05975e80.tar.gz
libnitrokey-bc4e9c7bcfd7d7b3f62b23e583ef216a05975e80.tar.bz2
Fix compilation warnings for tests
Cleanup CMakeList a bit as well. Fixes #97 Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/test_offline.cc')
-rw-r--r--unittest/test_offline.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittest/test_offline.cc b/unittest/test_offline.cc
index 3ef63d2..468849e 100644
--- a/unittest/test_offline.cc
+++ b/unittest/test_offline.cc
@@ -113,7 +113,7 @@ TEST_CASE("Test helper function - hex_string_to_byte", "[fast]") {
REQUIRE_NOTHROW(v = hex_string_to_byte("00112233445566"));
const uint8_t test_data[] = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66};
REQUIRE(v.size() == sizeof(test_data));
- for (int i = 0; i < v.size(); ++i) {
+ for (size_t i = 0; i < v.size(); ++i) {
INFO("Position i: " << i);
REQUIRE(v[i] == test_data[i]);
}