Skip to content

Commit

Permalink
'n_iterations' was no longer used after commit 45c2d96. Before then, …
Browse files Browse the repository at this point in the history
…we just checked it with an assert() to verify that we weren't going into some sort of endless loop. The assert() seems like a reasonable idea, and I could imagine needing the number of iterations at some point, and... without the assert, gcc can complain of an unused variable. So, reverting.
  • Loading branch information
Bill-Gray committed Jan 28, 2024
1 parent 9c87011 commit 1ae2f0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions elem_out.cpp
Expand Up @@ -4170,6 +4170,7 @@ static void improve_mpc_colors( const int n_obs, const OBSERVE FAR *obs,
assert( color >=0 && color < max_n_colors);
}
n_iterations++;
assert( n_iterations < 10);
}
}

Expand Down

0 comments on commit 1ae2f0a

Please sign in to comment.