Fix the Xcode static analysis warnings.