Fix warnings about ignored return values.