Fix warnings in disabled code.