mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
bhyve: add missing cases for graphics listen type
Address warning from -Wswitch-enum by adding missing cases for graphics listen types that are not supported. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
c391e07eb0
commit
ab59d3895b
@ -419,9 +419,15 @@ bhyveBuildGraphicsArgStr(const virDomainDef *def,
|
||||
|
||||
virBufferAsprintf(&opt, ":%d", graphics->data.vnc.port);
|
||||
break;
|
||||
default:
|
||||
case VIR_DOMAIN_GRAPHICS_LISTEN_TYPE_SOCKET:
|
||||
case VIR_DOMAIN_GRAPHICS_LISTEN_TYPE_NONE:
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("Unsupported listen type"));
|
||||
goto error;
|
||||
case VIR_DOMAIN_GRAPHICS_LISTEN_TYPE_LAST:
|
||||
default:
|
||||
virReportEnumRangeError(virDomainGraphicsListenType, glisten->type);
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (video->driver)
|
||||
|
Loading…
Reference in New Issue
Block a user