|
From: | Kevin Wolf |
Subject: | Re: [PATCH v2 4/7] block/dirty-bitmap: Clean up local variable shadowing |
Date: | Thu, 21 Sep 2023 10:37:06 +0200 |
Am 20.09.2023 um 20:31 hat Markus Armbruster geschrieben: > Local variables shadowing other local variables or parameters make the > code needlessly hard to understand. Tracked down with -Wshadow=local. > Clean up: rename both the pair of parameters and the pair of local > variables. While there, move the local variables to function scope. > > Suggested-by: Kevin Wolf <kwolf@redhat.com> > Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com>
[Prev in Thread] | Current Thread | [Next in Thread] |