compiler warning

This commit is contained in:
john30
2017-05-13 18:33:00 +02:00
parent 92f575a090
commit bf0fcd081d
4 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ int main() {
vector<string> row;
templates->readLineFromStream("inline", false, &dummystr, &lineNo, &row, &errorDescription, NULL, NULL);
const DataField* fields = NULL;
for (size_t i = 0; i < sizeof(checks) / sizeof(checks[0]); i++) {
for (unsigned int i = 0; i < sizeof(checks) / sizeof(checks[0]); i++) {
string check[5] = checks[i];
istringstream isstr(check[0]);
string expectStr = check[1];
+1 -1
View File
@@ -510,7 +510,7 @@ int main() {
vector<string> row;
templates->readLineFromStream(__FILE__, false, &dummystr, &lineNo, &row, &errorDescription, NULL, NULL);
const DataField* fields = NULL;
for (size_t i = 0; i < sizeof(checks) / sizeof(checks[0]); i++) {
for (unsigned int i = 0; i < sizeof(checks) / sizeof(checks[0]); i++) {
string check[5] = checks[i];
istringstream isstr(check[0]);
string expectStr = check[1];
+1 -1
View File
@@ -163,7 +163,7 @@ int main() {
vector<SlaveSymbolString*> sstrs;
mstrs.resize(1);
sstrs.resize(1);
for (size_t i = 0; i < sizeof(checks) / sizeof(checks[0]); i++) {
for (unsigned int i = 0; i < sizeof(checks) / sizeof(checks[0]); i++) {
string check[5] = checks[i];
string inputStr = check[1];
string flags = check[4];
+3 -2
View File
@@ -121,9 +121,10 @@ int main(int argc, char** argv) {
int masterCnt = 0, slaveCnt = 0;
for (int i=0; i<256; i++) {
if (isMaster(i)) {
symbol_t address = static_cast<symbol_t>(i);
if (isMaster(address)) {
masterCnt++;
} else if (isValidAddress(i, false)) {
} else if (isValidAddress(address, false)) {
slaveCnt++;
}
}