[virt-tools-list] [PATCH glib] Avoid unused variable in DHCP lease finalize method

Daniel P. Berrange berrange at redhat.com
Thu Jul 28 12:31:46 UTC 2016


On Thu, Jul 28, 2016 at 01:30:27PM +0100, Daniel P. Berrange wrote:
> If the network DHCP lease support is not detected, the build
> will generate a warning / error:
> 
> libvirt-gobject-network-dhcp-lease.c: In function 'gvir_network_dhcp_lease_finalize':
> libvirt-gobject-network-dhcp-lease.c:99:27: error: unused variable 'lease' [-Werror=unused-variable]
>      GVirNetworkDHCPLease *lease = GVIR_NETWORK_DHCP_LEASE(object);
>                            ^~~~~
> cc1: all warnings being treated as errors
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
> 
> Pushed as a broken build fix
> 
>  libvirt-gobject/libvirt-gobject-network-dhcp-lease.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)

Sorry wrong list and it got through before I successfully Ctrl-C'd it.


Regards,
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 :|




More information about the virt-tools-list mailing list