From 303cf4dbff9ed33e8b76d92d5fc95bfbb3df467c Mon Sep 17 00:00:00 2001 From: Jim Meyering 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;". --- tools/virsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.2