summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-04 00:15:15 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-04 00:15:15 +0300
commit09905d2bfa60d1000d901d1a9dd87f3c60978be4 (patch)
tree8f6aef4860fa9761f96ef78f0b1dea2d69030983
parentd4d8fcbc8e48ed06a11567ecb454a7b24723eedc (diff)
downloadplus-09905d2bfa60d1000d901d1a9dd87f3c60978be4.tar.gz
plus-09905d2bfa60d1000d901d1a9dd87f3c60978be4.tar.bz2
plus-09905d2bfa60d1000d901d1a9dd87f3c60978be4.tar.xz
plus-09905d2bfa60d1000d901d1a9dd87f3c60978be4.zip
Fix unused wariable in unit tests.
-rw-r--r--src/utils/stringutils_unittest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/stringutils_unittest.cc b/src/utils/stringutils_unittest.cc
index 106452b2d..ec0b70155 100644
--- a/src/utils/stringutils_unittest.cc
+++ b/src/utils/stringutils_unittest.cc
@@ -101,7 +101,8 @@ TEST_CASE("stringuntils atox 1")
REQUIRE(0 == atox(str));
str = "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
- atox(str);
+ const int k = atox(str);
+ printf("%d\n", k); // for avoid warning
str = "";
REQUIRE(0 == atox(str));