diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/parser/attachmentHelperTest.cpp | 2 | ||||
-rw-r--r-- | tests/testUtils.cpp | 1 | ||||
-rw-r--r-- | tests/testUtils.hpp | 6 |
3 files changed, 5 insertions, 4 deletions
diff --git a/tests/parser/attachmentHelperTest.cpp b/tests/parser/attachmentHelperTest.cpp index 142730c5..d764ecc1 100644 --- a/tests/parser/attachmentHelperTest.cpp +++ b/tests/parser/attachmentHelperTest.cpp @@ -54,7 +54,7 @@ VMIME_TEST_SUITE_BEGIN res += "["; - for (int i = 0 ; i < bdy->getPartCount() ; ++i) + for (size_t i = 0 ; i < bdy->getPartCount() ; ++i) { vmime::ref <vmime::bodyPart> subPart = bdy->getPartAt(i); diff --git a/tests/testUtils.cpp b/tests/testUtils.cpp index 8b16c4e8..8e02b3c7 100644 --- a/tests/testUtils.cpp +++ b/tests/testUtils.cpp @@ -110,6 +110,7 @@ void testSocket::sendRaw(const char* buffer, const size_type count) testSocket::size_type testSocket::sendRawNonBlocking(const char* buffer, const size_type count) { sendRaw(buffer, count); + return count; } diff --git a/tests/testUtils.hpp b/tests/testUtils.hpp index 34271f44..b522e400 100644 --- a/tests/testUtils.hpp +++ b/tests/testUtils.hpp @@ -106,7 +106,7 @@ inline std::ostream& operator<<(std::ostream& os, const vmime::text& txt) { os << "[text: ["; - for (int i = 0 ; i < txt.getWordCount() ; ++i) + for (size_t i = 0 ; i < txt.getWordCount() ; ++i) { const vmime::word& w = *txt.getWordAt(i); @@ -134,7 +134,7 @@ inline std::ostream& operator<<(std::ostream& os, const vmime::mailboxGroup& gro { os << "[mailbox-group: name=" << group.getName() << ", list=["; - for (int i = 0 ; i < group.getMailboxCount() ; ++i) + for (size_t i = 0 ; i < group.getMailboxCount() ; ++i) { if (i != 0) os << ","; @@ -152,7 +152,7 @@ inline std::ostream& operator<<(std::ostream& os, const vmime::addressList& list { os << "[address-list: ["; - for (int i = 0 ; i < list.getAddressCount() ; ++i) + for (size_t i = 0 ; i < list.getAddressCount() ; ++i) { const vmime::address& addr = *list.getAddressAt(i); |