From 2b3db39aff1fef32c687fedefc858f76cd7b5c98 Mon Sep 17 00:00:00 2001 From: Caner Candan Date: Tue, 31 Aug 2010 14:52:08 +0200 Subject: [PATCH] repared some compile warning messages --- eo/src/eoCtrlCContinue.h | 3 ++- eo/src/eoGenContinue.h | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/eo/src/eoCtrlCContinue.h b/eo/src/eoCtrlCContinue.h index 1936a5e59..797e294a9 100644 --- a/eo/src/eoCtrlCContinue.h +++ b/eo/src/eoCtrlCContinue.h @@ -65,8 +65,9 @@ public: /** Returns false when Ctrl C has been typed in * reached */ - virtual bool operator() ( const eoPop& _vEO ) + virtual bool operator() ( const eoPop& _vEO ) { + (void)_vEO; if (arret_demande) return false; return true; diff --git a/eo/src/eoGenContinue.h b/eo/src/eoGenContinue.h index 7d24e2438..c578fcc9c 100644 --- a/eo/src/eoGenContinue.h +++ b/eo/src/eoGenContinue.h @@ -27,6 +27,8 @@ #include #include +#include + /** Generational continuator: continues until a number of generations is reached */ @@ -52,13 +54,14 @@ public: /** Returns false when a certain number of generations is * reached */ virtual bool operator() ( const eoPop& _vEO ) { + (void)_vEO; thisGeneration++; value() = thisGeneration; // std::cout << " [" << thisGeneration << "] "; if (thisGeneration >= repTotalGenerations) { 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 true;