Fix code analysis warnings.