QUEEN: Silent some CppCheck warnings by reducing some variable scopes