Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some warnings #659

Merged
merged 2 commits into from
Jul 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions src/CbcSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2102,7 +2102,7 @@ int CbcMain1(std::deque<std::string> inputQueue, CbcModel &model,
}

if (cbcParam->type() == CoinParam::paramDbl) {
if (status = cbcParam->readValue(inputQueue, dValue, &message)){
if ((status = cbcParam->readValue(inputQueue, dValue, &message))){
printGeneralMessage(model_, message);
continue;
}
Expand Down Expand Up @@ -2168,7 +2168,7 @@ int CbcMain1(std::deque<std::string> inputQueue, CbcModel &model,
break;
}
} else if (clpParam->type() == CoinParam::paramDbl) {
if (status = clpParam->readValue(inputQueue, dValue, &message)){
if ((status = clpParam->readValue(inputQueue, dValue, &message))){
printGeneralMessage(model_, message);
continue;
}
Expand All @@ -2178,7 +2178,7 @@ int CbcMain1(std::deque<std::string> inputQueue, CbcModel &model,
continue;
}
} else if (cbcParam->type() == CoinParam::paramInt){
if (status = cbcParam->readValue(inputQueue, iValue, &message)){
if ((status = cbcParam->readValue(inputQueue, iValue, &message))){
printGeneralMessage(model_, message);
continue;
}
Expand Down Expand Up @@ -2364,7 +2364,7 @@ int CbcMain1(std::deque<std::string> inputQueue, CbcModel &model,
}
}
} else if (clpParam->type() == CoinParam::paramInt) {
if (status = clpParam->readValue(inputQueue, iValue, &message)){
if ((status = clpParam->readValue(inputQueue, iValue, &message))){
printGeneralMessage(model_, message);
continue;
}
Expand Down Expand Up @@ -2396,7 +2396,7 @@ int CbcMain1(std::deque<std::string> inputQueue, CbcModel &model,
dualize = iValue;
}
} else if (cbcParam->type() == CoinParam::paramKwd) {
if (status = cbcParam->readValue(inputQueue, field, &message)){
if ((status = cbcParam->readValue(inputQueue, field, &message))){
printGeneralMessage(model_, message);
continue;
}
Expand Down Expand Up @@ -2571,7 +2571,7 @@ int CbcMain1(std::deque<std::string> inputQueue, CbcModel &model,
break;
}
} else if (clpParam->type() == CoinParam::paramKwd) {
if (status = clpParam->readValue(inputQueue, field, &message)){
if ((status = clpParam->readValue(inputQueue, field, &message))){
printGeneralMessage(model_, message);
continue;
}
Expand Down Expand Up @@ -2710,7 +2710,7 @@ int CbcMain1(std::deque<std::string> inputQueue, CbcModel &model,
break;
}
} else if (cbcParam->type() == CoinParam::paramDir){
if (status = cbcParam->readValue(inputQueue, field, &message)){
if ((status = cbcParam->readValue(inputQueue, field, &message))){
printGeneralMessage(model_, message);
continue;
}
Expand All @@ -2719,7 +2719,7 @@ int CbcMain1(std::deque<std::string> inputQueue, CbcModel &model,
continue;
}
} else if (cbcParam->type() == CoinParam::paramFile){
if (status = cbcParam->readValue(inputQueue, field, &message)){
if ((status = cbcParam->readValue(inputQueue, field, &message))){
printGeneralMessage(model_, message);
continue;
}
Expand Down Expand Up @@ -3343,7 +3343,7 @@ int CbcMain1(std::deque<std::string> inputQueue, CbcModel &model,
continue;
}
// get bound
if (status = clpParam->readValue(inputQueue, dValue, &message)){
if ((status = clpParam->readValue(inputQueue, dValue, &message))){
std::cout << "Must enter value for " << clpParam->name()
<< std::endl;
continue;
Expand Down Expand Up @@ -5155,7 +5155,7 @@ int CbcMain1(std::deque<std::string> inputQueue, CbcModel &model,
// we have to keep solver2 so pass clone
solver2 = solver2->clone();
// see if extra variables wanted
bool threshold = parameters[CbcParam::EXTRAVARIABLES]->intVal();
int threshold = parameters[CbcParam::EXTRAVARIABLES]->intVal();
int more2 = parameters[CbcParam::MOREMOREMIPOPTIONS]->intVal();
if (threshold || (more2 & (512 | 1024)) != 0) {
int numberColumns = solver2->getNumCols();
Expand Down Expand Up @@ -10204,7 +10204,7 @@ int CbcMain1(std::deque<std::string> inputQueue, CbcModel &model,
}
} break;
case CbcParam::PRINTMASK:
if (status = cbcParam->readValue(inputQueue, field, &message)){
if ((status = cbcParam->readValue(inputQueue, field, &message))){
printGeneralMessage(model_, message);
continue;
}
Expand Down