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

Eric Blake eblake at redhat.com
Fri Feb 26 16:28:02 UTC 2010


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 at redhat.com>
> 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 at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 320 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100226/b3155823/attachment-0001.sig>


More information about the libvir-list mailing list