Unused variable sync_step_counter September 27, 2009, 10:16:52 am Compiling simutrans with gcc 4.3 on a debian squeeze I get a warning about an unused variable on simhalt.cc:823 - sync_step_counter. Grepping for the variable name in src gives no other matches than this occurrence. While the presence of an unused variable is of no big consequence in itself, since it might constitute an indication of some other typo or such, I still wanted to bring it to your attention. Removing the variable does not prevent compiling nor starting the game, but further than that I have not looked.A svn blame yields the following:Quote 2627 prissi uint8 sync_step_counter = 1; which was committed with the following comment:QuoteFIX: make the game a little more responsive when dealing with extremly large stationsI attach a mini-patch that simply removes the variable declaration. Quote Selected
Re: Unused variable sync_step_counter Reply #1 – September 27, 2009, 05:10:03 pm This was a leftover from a too difficult way to make the game more responsive. Thank you. Quote Selected