mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
build: avoid warning about return-with-value in void function
* tools/virsh.c: Just "return;", not "return NULL;".
This commit is contained in:
parent
7ca954cf26
commit
303cf4dbff
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user