Fix compiler warnings re: ignored return values.