• Kir Kolyshkin's avatar
    mnt_tree_for_each_reverse(): init a variable · e2a0be63
    Kir Kolyshkin authored
    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: 's avatarKir Kolyshkin <kir@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    e2a0be63
mount.c 28.8 KB