fix: doc and warnings

This commit is contained in:
Johann Dreo 2020-04-22 08:00:28 +02:00
commit ee5e1a36f6
5 changed files with 10 additions and 5 deletions

View file

@ -29,7 +29,11 @@ Authors:
#include "eoContinue.h" #include "eoContinue.h"
/** @defgroup Reset Algorithms operating a reset of some sort (e.g. on the population). */ /** @defgroup Reset
*
* Algorithms operating a reset of some sort.
* (e.g. on the population).
*/
/** A semantic layer indicating that the derived operator operates a reset of some sort. /** A semantic layer indicating that the derived operator operates a reset of some sort.
* *

View file

@ -65,7 +65,7 @@ template <class EOT>
eoEsChromInit<EOT> & do_make_genotype(eoParser& _parser, eoState& _state, EOT) eoEsChromInit<EOT> & do_make_genotype(eoParser& _parser, eoState& _state, EOT)
{ {
// the fitness type // the fitness type
typedef typename EOT::Fitness FitT; // typedef typename EOT::Fitness FitT;
eoEsChromInit<EOT> *init; eoEsChromInit<EOT> *init;
// for eoReal, only thing needed is the size - but might have been created elswhere ... // for eoReal, only thing needed is the size - but might have been created elswhere ...

View file

@ -69,7 +69,7 @@
*/ */
template <class EOT> template <class EOT>
eoGenOp<EOT> & do_make_op(eoParser& _parser, eoState& _state, eoInit<EOT>& _init) eoGenOp<EOT> & do_make_op(eoParser& _parser, eoState& _state, eoInit<EOT>& /*_init*/)
{ {
// this is a temporary version, while Maarten codes the full tree-structured // this is a temporary version, while Maarten codes the full tree-structured
// general operator input // general operator input

View file

@ -77,7 +77,7 @@ eoParameterLoader::~eoParameterLoader()
} }
eoParser::eoParser ( unsigned _argc, char **_argv , string _programDescription, eoParser::eoParser ( unsigned _argc, char **_argv , string _programDescription,
string _lFileParamName, char _shortHand) : string /*_lFileParamName*/, char /*_shortHand*/) :
programName(_argv[0]), programName(_argv[0]),
programDescription( _programDescription), programDescription( _programDescription),
needHelpMessage( false ), needHelpMessage( false ),

View file

@ -242,7 +242,7 @@ eoRealBounds* eoGeneralRealBounds::getBoundsFromString(std::string _value)
} }
// now create the embedded eoRealBounds object // now create the embedded eoRealBounds object
eoRealBounds * locBound; eoRealBounds * locBound = nullptr;
if (minBounded && maxBounded) if (minBounded && maxBounded)
{ {
if (maxBound <= minBound) if (maxBound <= minBound)
@ -255,5 +255,6 @@ eoRealBounds* eoGeneralRealBounds::getBoundsFromString(std::string _value)
locBound = new eoRealAboveBound(maxBound); locBound = new eoRealAboveBound(maxBound);
else if (minBounded && !maxBounded) else if (minBounded && !maxBounded)
locBound = new eoRealBelowBound(minBound); locBound = new eoRealBelowBound(minBound);
assert(locBound != nullptr);
return locBound; return locBound;
} }