diff --git a/eo/src/ga/make_op.h b/eo/src/ga/make_op.h index 8c46549f1..045148eca 100644 --- a/eo/src/ga/make_op.h +++ b/eo/src/ga/make_op.h @@ -115,11 +115,11 @@ eoGenOp & do_make_op(eoParser& _parser, eoState& _state, eoInit& _init throw std::runtime_error("Invalid uRate"); // minimum check - bool bCross = true; + // bool bCross = true; // not used ? if (onePointRateParam.value()+twoPointsRateParam.value()+uRateParam.value()==0) { std::cerr << "Warning: no crossover" << std::endl; - bCross = false; + // bCross = false; } // Create the CombinedQuadOp @@ -162,11 +162,11 @@ eoGenOp & do_make_op(eoParser& _parser, eoState& _state, eoInit& _init throw std::runtime_error("Invalid oneBitRate"); // minimum check - bool bMut = true; + // bool bMut = true; // not used ? if (bitFlipRateParam.value()+oneBitRateParam.value()==0) { std::cerr << "Warning: no mutation" << std::endl; - bMut = false; + // bMut = false; } // Create the CombinedMonOp diff --git a/eo/src/utils/eoLogger.cpp b/eo/src/utils/eoLogger.cpp index e478ba093..f052d7955 100644 --- a/eo/src/utils/eoLogger.cpp +++ b/eo/src/utils/eoLogger.cpp @@ -194,8 +194,7 @@ int eoLogger::outbuf::overflow(int_type c) { if (_fd >= 0 && c != EOF) { - size_t num; - num = ::write(_fd, &c, 1); + ::write(_fd, &c, 1); } } return c;