提交 4f995eab 编写于 作者: J John Ferlan

remote: Fix usage of ATTRIBUTE_FALLTHROUGH

Move to within the #if since the #else portion ends with a goto
and that raised concern by Coverity.
Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
上级 c028c719
......@@ -928,6 +928,7 @@ doRemoteOpen(virConnectPtr conn,
if (!priv->tls)
goto failed;
priv->is_secure = 1;
ATTRIBUTE_FALLTHROUGH;
#else
(void)tls_priority;
(void)sanity;
......@@ -937,7 +938,6 @@ doRemoteOpen(virConnectPtr conn,
goto failed;
#endif
ATTRIBUTE_FALLTHROUGH;
case trans_tcp:
priv->client = virNetClientNewTCP(priv->hostname, port, AF_UNSPEC);
if (!priv->client)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册