* make_op.h, eoLogger.cpp: disabled not used variables. should I remove them ?
This commit is contained in:
parent
461edcf3cf
commit
a183a1c6d1
2 changed files with 5 additions and 6 deletions
|
|
@ -115,11 +115,11 @@ eoGenOp<EOT> & do_make_op(eoParser& _parser, eoState& _state, eoInit<EOT>& _init
|
||||||
throw std::runtime_error("Invalid uRate");
|
throw std::runtime_error("Invalid uRate");
|
||||||
|
|
||||||
// minimum check
|
// minimum check
|
||||||
bool bCross = true;
|
// bool bCross = true; // not used ?
|
||||||
if (onePointRateParam.value()+twoPointsRateParam.value()+uRateParam.value()==0)
|
if (onePointRateParam.value()+twoPointsRateParam.value()+uRateParam.value()==0)
|
||||||
{
|
{
|
||||||
std::cerr << "Warning: no crossover" << std::endl;
|
std::cerr << "Warning: no crossover" << std::endl;
|
||||||
bCross = false;
|
// bCross = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create the CombinedQuadOp
|
// Create the CombinedQuadOp
|
||||||
|
|
@ -162,11 +162,11 @@ eoGenOp<EOT> & do_make_op(eoParser& _parser, eoState& _state, eoInit<EOT>& _init
|
||||||
throw std::runtime_error("Invalid oneBitRate");
|
throw std::runtime_error("Invalid oneBitRate");
|
||||||
|
|
||||||
// minimum check
|
// minimum check
|
||||||
bool bMut = true;
|
// bool bMut = true; // not used ?
|
||||||
if (bitFlipRateParam.value()+oneBitRateParam.value()==0)
|
if (bitFlipRateParam.value()+oneBitRateParam.value()==0)
|
||||||
{
|
{
|
||||||
std::cerr << "Warning: no mutation" << std::endl;
|
std::cerr << "Warning: no mutation" << std::endl;
|
||||||
bMut = false;
|
// bMut = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create the CombinedMonOp
|
// Create the CombinedMonOp
|
||||||
|
|
|
||||||
|
|
@ -194,8 +194,7 @@ int eoLogger::outbuf::overflow(int_type c)
|
||||||
{
|
{
|
||||||
if (_fd >= 0 && c != EOF)
|
if (_fd >= 0 && c != EOF)
|
||||||
{
|
{
|
||||||
size_t num;
|
::write(_fd, &c, 1);
|
||||||
num = ::write(_fd, &c, 1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return c;
|
return c;
|
||||||
|
|
|
||||||
Reference in a new issue