fix: remove a lot of trivial warnings
This commit is contained in:
parent
a16298c58b
commit
84148824e0
83 changed files with 218 additions and 196 deletions
|
|
@ -82,9 +82,9 @@ public:
|
|||
|
||||
// replace if necessary
|
||||
for(i = 0; i < i1; i++) {
|
||||
while (p1[ _solution1[i] ] != -1)
|
||||
while (p1[ _solution1[i] ] != -1) // FIXME as an unsigned int, p1 cannot hold negative values!
|
||||
_solution1[i] = p1[_solution1[i]];
|
||||
while (p2[ _solution2[i] ] != -1)
|
||||
while (p2[ _solution2[i] ] != -1) // FIXME as an unsigned int, p2 cannot hold negative values!
|
||||
_solution2[i] = p2[_solution2[i]];
|
||||
}
|
||||
|
||||
|
|
@ -96,9 +96,9 @@ public:
|
|||
|
||||
// replace if necessary
|
||||
for(i = i2 + 1; i < _solution1.size(); i++) {
|
||||
while (p1[ _solution1[i] ] != -1)
|
||||
while (p1[ _solution1[i] ] != -1) // FIXME as an unsigned int, p1 cannot hold negative values!
|
||||
_solution1[i] = p1[_solution1[i]];
|
||||
while (p2[ _solution2[i] ] != -1)
|
||||
while (p2[ _solution2[i] ] != -1) // FIXME as an unsigned int, p2 cannot hold negative values!
|
||||
_solution2[i] = p2[_solution2[i]];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,11 @@ class eoParseTreeDepthInit : public eoInit< eoParseTree<FType, Node> >
|
|||
protected:
|
||||
// a binary predicate for sorting
|
||||
// hopefully this will work with M$VC++ 6.0
|
||||
#if __cplusplus >= 201103L
|
||||
struct lt_arity:public std::function<bool(Node,Node)>
|
||||
#else
|
||||
struct lt_arity:public std::binary_function<Node,Node,bool>
|
||||
#endif
|
||||
{
|
||||
bool operator()(const Node &_node1, const Node &_node2) { return (_node1.arity() < _node2.arity());};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -31,8 +31,6 @@ public :
|
|||
int the_main(int argc, char **argv)
|
||||
{ // ok, we have a command line parser and a state
|
||||
|
||||
typedef eoBit<float> Chrom;
|
||||
|
||||
eoParser parser(argc, argv);
|
||||
|
||||
// Define Parameters
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ eoValueParam<unsigned> tournamentSizeParam = parser.createParam(unsigned(2), "to
|
|||
}
|
||||
|
||||
// hard-coded directory name ...
|
||||
const int ignored = system("mkdir ResSelect");
|
||||
(void) system("mkdir ResSelect");
|
||||
std::cout << "Testing the Selections\nParents size = " << pSize
|
||||
<< ", offspring rate = " << oRate;
|
||||
std::cout << " and putting rsulting files in dir ResSelect" << std::endl;
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ int the_main(int argc, char **argv)
|
|||
|
||||
std::cout << "The resulting file (in dir ResSelect), contains \n";
|
||||
std::cout << " the empirical proba. for each indi to be selected." << std::endl;
|
||||
const int ignored = system("mkdir ResSelect");
|
||||
(void) system("mkdir ResSelect");
|
||||
|
||||
// initialize parent population
|
||||
parentsOrg.resize(pSize);
|
||||
|
|
|
|||
|
|
@ -37,8 +37,6 @@ struct Dummy : public EO<double>
|
|||
int the_main(int argc, char **argv)
|
||||
{ // ok, we have a command line parser and a state
|
||||
|
||||
typedef eoBit<float> Chrom;
|
||||
|
||||
eoParser parser(argc, argv);
|
||||
|
||||
// Define Parameters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue