Skip to content

Commit

Permalink
fix(warnings): do not ignore return from system
Browse files Browse the repository at this point in the history
  • Loading branch information
jdreo committed Aug 23, 2024
1 parent b4e89d8 commit 3cc374c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eo/test/t-eoSelect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ eoValueParam<unsigned> tournamentSizeParam = parser.createParam(unsigned(2), "to
}

// hard-coded directory name ...
system("mkdir ResSelect");
const int ignored = 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;
Expand Down
2 changes: 1 addition & 1 deletion eo/test/t-eoSharing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
system("mkdir ResSelect");
const int ignored = system("mkdir ResSelect");

// initialize parent population
parentsOrg.resize(pSize);
Expand Down

0 comments on commit 3cc374c

Please sign in to comment.