]> xenbits.xensource.com Git - libvirt.git/commitdiff
remote: Fix usage of ATTRIBUTE_FALLTHROUGH
authorJohn Ferlan <jferlan@redhat.com>
Mon, 2 Apr 2018 11:09:28 +0000 (07:09 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 19 Apr 2018 18:23:39 +0000 (14:23 -0400)
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>
src/remote/remote_driver.c

index d3b588c3740d72ca9b60be9900eb6ac2ce67983c..12f7d47388753415b996781488d48151cbe72128 100644 (file)
@@ -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)