mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-05 12:35:20 +00:00
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: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
c028c71930
commit
4f995eab83
@ -928,6 +928,7 @@ doRemoteOpen(virConnectPtr conn,
|
|||||||
if (!priv->tls)
|
if (!priv->tls)
|
||||||
goto failed;
|
goto failed;
|
||||||
priv->is_secure = 1;
|
priv->is_secure = 1;
|
||||||
|
ATTRIBUTE_FALLTHROUGH;
|
||||||
#else
|
#else
|
||||||
(void)tls_priority;
|
(void)tls_priority;
|
||||||
(void)sanity;
|
(void)sanity;
|
||||||
@ -937,7 +938,6 @@ doRemoteOpen(virConnectPtr conn,
|
|||||||
goto failed;
|
goto failed;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ATTRIBUTE_FALLTHROUGH;
|
|
||||||
case trans_tcp:
|
case trans_tcp:
|
||||||
priv->client = virNetClientNewTCP(priv->hostname, port, AF_UNSPEC);
|
priv->client = virNetClientNewTCP(priv->hostname, port, AF_UNSPEC);
|
||||||
if (!priv->client)
|
if (!priv->client)
|
||||||
|
Loading…
Reference in New Issue
Block a user