[Issue#] LINUXWRT-6
[Bug] Compilation warnings
[Cause] N/A
[Solution] Remvoe them
[Verification] Build repository
Change-Id: I9bf7f3262672e3367a0a57b03dc793a3672124ba
zlib_filefunc64_32_def* pzlib_filefunc64_32_def,
int is64bitOpenFunction)
{
- unz64_s us = {0, };
+ unz64_s us;
+ memset(&us,0,sizeof(unz64_s));
+
unz64_s *s = NULL;
ZPOS64_T central_pos;
uLong uL;
WRT_DB_SELECT(select, iana_records, &WrtDatabase::interface())
select->Where(Equals<iana_records::SUBTAG>(tag));
auto row = select->GetRowList();
- if (row.size() == 0 || row.front().Get_TYPE() != type) {
+ if (row.empty() || row.front().Get_TYPE() != type) {
return false;
} else {
return true;
RUNNER_ASSERT(dbHandle == handle);
auto objects = dao.getImplementedObjectsForPluginHandle(dbHandle);
- RUNNER_ASSERT(objects.size() == 0);
+ RUNNER_ASSERT(objects.empty());
}
}
TestTableInsert::Select select1(interface.get());
std::list<int> resultList = select1.GetValueList<TestTableInsert::ColumnInt>();
- RUNNER_ASSERT_MSG(
- resultList.size() == 0, "Returned list has wrong size: " <<
- resultList.size());
+ RUNNER_ASSERT_MSG(resultList.empty(),
+ "Returned list has wrong size: " << resultList.size());
+
std::list<TestTableInsert::Row> list;
TestTableInsert::Insert insert(interface.get());