repared some compile warning messages

This commit is contained in:
Caner Candan 2010-08-31 14:52:08 +02:00
commit 2b3db39aff
2 changed files with 6 additions and 2 deletions

View file

@ -67,6 +67,7 @@ public:
* reached */ * reached */
virtual bool operator() ( const eoPop<EOT>& _vEO ) virtual bool operator() ( const eoPop<EOT>& _vEO )
{ {
(void)_vEO;
if (arret_demande) if (arret_demande)
return false; return false;
return true; return true;

View file

@ -27,6 +27,8 @@
#include <eoContinue.h> #include <eoContinue.h>
#include <utils/eoParam.h> #include <utils/eoParam.h>
#include <utils/eoLogger.h>
/** /**
Generational continuator: continues until a number of generations is reached Generational continuator: continues until a number of generations is reached
*/ */
@ -52,13 +54,14 @@ public:
/** Returns false when a certain number of generations is /** Returns false when a certain number of generations is
* reached */ * reached */
virtual bool operator() ( const eoPop<EOT>& _vEO ) { virtual bool operator() ( const eoPop<EOT>& _vEO ) {
(void)_vEO;
thisGeneration++; thisGeneration++;
value() = thisGeneration; value() = thisGeneration;
// std::cout << " [" << thisGeneration << "] "; // std::cout << " [" << thisGeneration << "] ";
if (thisGeneration >= repTotalGenerations) if (thisGeneration >= repTotalGenerations)
{ {
if (verbose) if (verbose)
std::cout << "STOP in eoGenContinue: Reached maximum number of generations [" << thisGeneration << "/" << repTotalGenerations << "]\n"; eo::log << eo::logging << "STOP in eoGenContinue: Reached maximum number of generations [" << thisGeneration << "/" << repTotalGenerations << "]\n";
return false; return false;
} }
return true; return true;