From: Jim Meyering Date: Fri, 26 Feb 2010 10:50:34 +0000 (+0100) Subject: build: avoid warning about return-with-value in void function X-Git-Tag: v0.7.7~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=303cf4dbff9ed33e8b76d92d5fc95bfbb3df467c;p=thirdparty%2Flibvirt.git build: avoid warning about return-with-value in void function * tools/virsh.c: Just "return;", not "return NULL;". --- diff --git a/tools/virsh.c b/tools/virsh.c index f7fd7d4941..3b1011ccf6 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -360,7 +360,7 @@ virshReportError(vshControl *ctl) * no error was ever raised, so just ignore */ last_error = virSaveLastError(); if (!last_error || last_error->code == VIR_ERR_OK) - return NULL; + return; } if (last_error->code == VIR_ERR_OK) {