build: address some code-analysis warnings.