dev: address some code analysis warnings.