Fix warnings generated by gcc 4.6.0 about variables set but not