提交 ab59d389 编写于 作者: D Daniel P. Berrangé

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: NDaniel P. Berrangé <berrange@redhat.com>
上级 c391e07e
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册