fix warnings about ignoring return values