Re: [PATCH glib] Remove dead cleanup code in object fetch_list helpers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 19, 2013 at 07:29:41AM -0400, John Ferlan wrote:
> On 08/15/2013 08:41 AM, Daniel P. Berrange wrote:
> > From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> > 
> > The fetch_list helper cleanup code iterates over the
> > elements in 'lst' array free'ing each one. This is dead
> > code, however, since the only way to get there is from
> > codepaths which do not populate 'lst' elements.
> > 
> > This fixes two coverity DEADCODE reports
> > 
> > Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
> > ---
> >  libvirt-gobject/libvirt-gobject-connection.c   | 6 +-----
> >  libvirt-gobject/libvirt-gobject-storage-pool.c | 6 +-----
> >  2 files changed, 2 insertions(+), 10 deletions(-)
> > 
> 
> 
> This does fix the coverity error, but for both the "gint i;" is now
> unnecessary resulting in:
> 
> libvirt-gobject-storage-pool.c:324:10: error: unused variable 'i'
> [-Werror=unused-variable]
>      gint i;

Opps, pushed the fix for that.

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]