fixed some warning messages while compiling

This commit is contained in:
Caner Candan 2010-08-31 16:39:21 +02:00
commit 20a4496b83
3 changed files with 6 additions and 3 deletions

View file

@ -40,12 +40,12 @@ public:
virtual std::string className(void) const { return "eoContinue"; } virtual std::string className(void) const { return "eoContinue"; }
void readFrom (std :: istream & __is) { void readFrom (std :: istream & __is) {
(void)__is;
/* It should be implemented by subclasses ! */ /* It should be implemented by subclasses ! */
} }
void printOn (std :: ostream & __os) const { void printOn (std :: ostream & __os) const {
(void)__os;
/* It should be implemented by subclasses ! */ /* It should be implemented by subclasses ! */
} }
}; };

View file

@ -43,6 +43,7 @@ public:
/** Returns false when a certain number of evaluations has been done /** Returns false when a certain number of evaluations has been done
*/ */
virtual bool operator() ( const eoPop<EOT>& _vEO ) { virtual bool operator() ( const eoPop<EOT>& _vEO ) {
(void)_vEO;
if (eval.value() >= repTotalEvaluations) if (eval.value() >= repTotalEvaluations)
{ {
std::cout << "STOP in eoEvalContinue: Reached maximum number of evaluations [" << repTotalEvaluations << "]\n"; std::cout << "STOP in eoEvalContinue: Reached maximum number of evaluations [" << repTotalEvaluations << "]\n";

View file

@ -47,7 +47,9 @@ class eoSelectOne : public eoUF<const eoPop<EOT>&, const EOT&>
public : public :
/// virtual function to setup some population stats (for instance eoProportional can benefit greatly from this) /// virtual function to setup some population stats (for instance eoProportional can benefit greatly from this)
virtual void setup(const eoPop<EOT>& _pop) virtual void setup(const eoPop<EOT>& _pop)
{} {
(void)_pop;
}
}; };