From 5cbbe83a0effae8e3576ebe14ea6b1d8cebc4a05 Mon Sep 17 00:00:00 2001 From: tlegrand Date: Tue, 15 Jan 2008 13:53:18 +0000 Subject: [PATCH] removed bad semicolon at the end of a "{}" bloc which is not a class/template. Debugged using g++ flags (see CMakeLists.txt at the root) --- eo/app/gprop/gprop.h | 2 +- eo/app/gpsymreg/fitness.h | 4 ++-- eo/app/gpsymreg/main.cpp | 2 +- eo/app/mastermind/mastermind.h | 2 +- eo/src/eoPersistent.cpp | 2 +- eo/src/eoPrintable.cpp | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/eo/app/gprop/gprop.h b/eo/app/gprop/gprop.h index 794fcc4bb..399a1ff65 100644 --- a/eo/app/gprop/gprop.h +++ b/eo/app/gprop/gprop.h @@ -228,7 +228,7 @@ phenotype eoChromEvaluator(const Chrom& chrom) p.mse_error = mse::error(chrom, *val_set); return p; -}; +} //----------------------------------------------------------------------------- diff --git a/eo/app/gpsymreg/fitness.h b/eo/app/gpsymreg/fitness.h index d8a3f5482..90047cc71 100644 --- a/eo/app/gpsymreg/fitness.h +++ b/eo/app/gpsymreg/fitness.h @@ -58,7 +58,7 @@ double sextic_polynomial(double x) double result=0; result = pow(x,6) - (2*pow(x,4)) + pow(x,2); return result; -}; +} // we use the following functions for the basic math functions @@ -158,7 +158,7 @@ void init(vector &initSequence) initSequence.push_back( OpDIVIDE ); -}; +} diff --git a/eo/app/gpsymreg/main.cpp b/eo/app/gpsymreg/main.cpp index c05d4207c..98823e345 100644 --- a/eo/app/gpsymreg/main.cpp +++ b/eo/app/gpsymreg/main.cpp @@ -334,7 +334,7 @@ int main(int argc, char *argv[]) -}; +} diff --git a/eo/app/mastermind/mastermind.h b/eo/app/mastermind/mastermind.h index 60cd2662c..13066036e 100644 --- a/eo/app/mastermind/mastermind.h +++ b/eo/app/mastermind/mastermind.h @@ -63,7 +63,7 @@ phenotype eoChromEvaluator(const Chrom& chrom) // return black * points_per_black + white * points_per_white; return black * chrom.size() + white; -}; +} const unsigned default_length = 8; const unsigned default_colors = 8; diff --git a/eo/src/eoPersistent.cpp b/eo/src/eoPersistent.cpp index 1c0c52ea7..253c5803b 100644 --- a/eo/src/eoPersistent.cpp +++ b/eo/src/eoPersistent.cpp @@ -12,4 +12,4 @@ std::istream & operator >> ( std::istream& _is, eoPersistent& _o ) { _o.readFrom(_is); return _is; -}; +} diff --git a/eo/src/eoPrintable.cpp b/eo/src/eoPrintable.cpp index c90e6424b..a68536a5f 100644 --- a/eo/src/eoPrintable.cpp +++ b/eo/src/eoPrintable.cpp @@ -16,7 +16,7 @@ std::ostream & operator << ( std::ostream& _os, const eoPrintable& _o ) { _o.printOn(_os); return _os; -}; +} //-----------------------------------------------------------------------------