Suppressed most warning (except some unused variables) if you don't modify anythig

This commit is contained in:
evomarc 2001-09-24 05:59:13 +00:00
commit 1d7b79b85a
2 changed files with 12 additions and 10 deletions

View file

@ -46,15 +46,16 @@ public:
*/ */
bool operator()(GenotypeT & _genotype) bool operator()(GenotypeT & _genotype)
{ {
bool isModified;
// START code for mutation of the _genotype object // START code for mutation of the _genotype object
/** Requirement /** Requirement
* if _genotype has been modified * if (_genotype has been modified)
* return true; * isModified = true;
* otherwise * else
* return false; * isModified = false;
*/ */
return isModified;
// END code for mutation of the _genotype object // END code for mutation of the _genotype object
} }

View file

@ -48,15 +48,16 @@ public:
*/ */
bool operator()(GenotypeT& _genotype1, GenotypeT & _genotype2) bool operator()(GenotypeT& _genotype1, GenotypeT & _genotype2)
{ {
bool oneAtLeastIsModified;
// START code for crossover of _genotype1 and _genotype2 objects // START code for crossover of _genotype1 and _genotype2 objects
/** Requirement /** Requirement
* if at least one genotype has been modified - no way to distinguish * if (at least one genotype has been modified) // no way to distinguish
* return true; * oneAtLeastIsModified = true;
* otherwise * else
* return false; * oneAtLeastIsModified = false;
*/ */
return oneAtLeastIsModified;
// END code for crossover of _genotype1 and _genotype2 objects // END code for crossover of _genotype1 and _genotype2 objects
} }