Re: [libvirt] [PATCH] build: avoid warning about return-with-value in void function

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

 



According to Jim Meyering on 2/26/2010 3:51 AM:
> I saw this:
> 
>     virsh.c: In function 'virshReportError':
>     virsh.c:363: warning: 'return' with a value, in function returning void
> 
> 
>>From fc83f08ac204cec5fba474a23bd19386d1a415d7 Mon Sep 17 00:00:00 2001
> From: Jim Meyering <meyering@xxxxxxxxxx>
> Date: Fri, 26 Feb 2010 11:50:34 +0100
> Subject: [PATCH] build: avoid warning about return-with-value in void function
> 
> * tools/virsh.c: Just "return;", not "return NULL;".

ACK.  Regression was introduced by Cole, in commit 48286963, probably due
to copy-n-paste.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
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]