compiler warning
This commit is contained in:
@@ -120,7 +120,7 @@ int main() {
|
|||||||
vector<string> row;
|
vector<string> row;
|
||||||
templates->readLineFromStream("inline", false, &dummystr, &lineNo, &row, &errorDescription, NULL, NULL);
|
templates->readLineFromStream("inline", false, &dummystr, &lineNo, &row, &errorDescription, NULL, NULL);
|
||||||
const DataField* fields = 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];
|
string check[5] = checks[i];
|
||||||
istringstream isstr(check[0]);
|
istringstream isstr(check[0]);
|
||||||
string expectStr = check[1];
|
string expectStr = check[1];
|
||||||
|
|||||||
@@ -510,7 +510,7 @@ int main() {
|
|||||||
vector<string> row;
|
vector<string> row;
|
||||||
templates->readLineFromStream(__FILE__, false, &dummystr, &lineNo, &row, &errorDescription, NULL, NULL);
|
templates->readLineFromStream(__FILE__, false, &dummystr, &lineNo, &row, &errorDescription, NULL, NULL);
|
||||||
const DataField* fields = 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];
|
string check[5] = checks[i];
|
||||||
istringstream isstr(check[0]);
|
istringstream isstr(check[0]);
|
||||||
string expectStr = check[1];
|
string expectStr = check[1];
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ int main() {
|
|||||||
vector<SlaveSymbolString*> sstrs;
|
vector<SlaveSymbolString*> sstrs;
|
||||||
mstrs.resize(1);
|
mstrs.resize(1);
|
||||||
sstrs.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 check[5] = checks[i];
|
||||||
string inputStr = check[1];
|
string inputStr = check[1];
|
||||||
string flags = check[4];
|
string flags = check[4];
|
||||||
|
|||||||
@@ -121,9 +121,10 @@ int main(int argc, char** argv) {
|
|||||||
|
|
||||||
int masterCnt = 0, slaveCnt = 0;
|
int masterCnt = 0, slaveCnt = 0;
|
||||||
for (int i=0; i<256; i++) {
|
for (int i=0; i<256; i++) {
|
||||||
if (isMaster(i)) {
|
symbol_t address = static_cast<symbol_t>(i);
|
||||||
|
if (isMaster(address)) {
|
||||||
masterCnt++;
|
masterCnt++;
|
||||||
} else if (isValidAddress(i, false)) {
|
} else if (isValidAddress(address, false)) {
|
||||||
slaveCnt++;
|
slaveCnt++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user