gcc 4.4.3 compilation warnings
Compiling simutrans experimental with gcc 4.4.3 on ubuntu 64-bit gives lots and lots of warnings.
I actually spent a couple hours yesterday going thru a lot of them. A few of them turned out to be quite serious.
I'm about halfway done and I just pushed my current changes to a new "nowarn" branch on my github. There are a couple dozen commits, basically one per warning-ish, with some similar fixes lumped together. Criticism on the fixes is welcome.
Here's an amusing example (I stopped around here so I haven't fixed this one yet)
gui/replace_frame.cc ~ line 330
uint32 present_state=get_present_state();
if (present_state==-1) {
continue;
}
This might be technically ok... if get_present_state() didn't return uint8 