bug4578: fix debug compiles to be warn-free