[CRIU] [PATCH] mnt_tree_for_each_reverse(): init a variable
Pavel Emelyanov
xemul at parallels.com
Thu Dec 19 23:26:36 PST 2013
On 12/20/2013 01:18 AM, Kir Kolyshkin wrote:
> A warning catched by clang:
>
>> mount.c:869:71: error: variable 'progress' is uninitialized when used here
>> [-Werror,-Wuninitialized]
>> ...prev, MNT_WALK_NONE, fn, (struct list_head *) NULL, progress);
>> ^~~~~~~~
>> mount.c:802:4: note: expanded from macro 'MNT_TREE_WALK'
>> _prgs++;
>> \
>> ^
>> mount.c:867:14: note: initialize the variable 'progress' to silence this
>> warning
>> int progress;
>> ^
>> = 0
>> 1 error generated.
>
> Signed-off-by: Kir Kolyshkin <kir at openvz.org>
applied, thanks
More information about the CRIU
mailing list