fix(mo): comment out unused parameters

Removes -Wunused-parameters warnings.
This commit is contained in:
Johann Dreo 2022-09-10 06:26:34 +02:00
commit 843aa6fc37
69 changed files with 159 additions and 159 deletions

View file

@ -98,13 +98,13 @@ public:
* @param _neighbor the first neighbor
* @param _n Hamming distance of the neighbor
*/
virtual void randomNeighbor(EOT & _solution, Neighbor & _neighbor, unsigned _n) {
virtual void randomNeighbor(EOT & /*_solution*/, Neighbor & _neighbor, unsigned _n) {
_neighbor.bits.resize(_n);
_neighbor.nBits = _n;
unsigned i;
unsigned b;
unsigned tmp;
// unsigned tmp;
for(unsigned k = 0; k < _n; k++) {
i = rng.random(length - k);
@ -167,7 +167,7 @@ public:
* @param _solution the solution to explore
* @return true if there is again a neighbor to explore: population size larger or equals than 1
*/
virtual bool cont(EOT & _solution) {
virtual bool cont(EOT & /*_solution*/) {
return nNeighbors < sampleSize ;
}

View file

@ -142,7 +142,7 @@ public:
* @param _solution the solution to explore
* @param _neighbor the first neighbor
*/
virtual void init(EOT & _solution, Neighbor & _neighbor) {
virtual void init(EOT & /*_solution*/, Neighbor & _neighbor) {
maxIndex = neighborhoodSize ;
unsigned i = rng.random(maxIndex);
@ -163,7 +163,7 @@ public:
* @param _solution the solution to explore (population of solutions)
* @param _neighbor the next neighbor which in order of distance
*/
virtual void next(EOT & _solution, Neighbor & _neighbor) {
virtual void next(EOT & /*_solution*/, Neighbor & _neighbor) {
unsigned i = rng.random(maxIndex);
key = indexVector[i];
@ -180,7 +180,7 @@ public:
* @param _solution the solution to explore
* @return true if there is again a neighbor to explore: population size larger or equals than 1
*/
virtual bool cont(EOT & _solution) {
virtual bool cont(EOT & /*_solution*/) {
return neighborhoodSize - maxIndex < sampleSize ;
}