fix code-analysis warnings