[network-manager-libreswan] service: fix fallthrough warnings



commit 6a5868cc80a42c65ca744dc1b5b983020538804e
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Tue Oct 31 09:55:52 2017 +0100

    service: fix fallthrough warnings
    
    Adjust the comments to the form that satisfy -Wimplicit-fallthrough in
    GCC 7.2.

 src/nm-libreswan-service.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/nm-libreswan-service.c b/src/nm-libreswan-service.c
index 7145997..487909b 100644
--- a/src/nm-libreswan-service.c
+++ b/src/nm-libreswan-service.c
@@ -1552,8 +1552,8 @@ connect_step (NMLibreswanPlugin *self, GError **error)
 
        switch (priv->connect_step) {
        case CONNECT_STEP_FIRST:
-               /* fall through */
                priv->connect_step++;
+               /* fallthrough */
 
        case CONNECT_STEP_CHECK_RUNNING:
                if (!do_spawn (self, &priv->pid, NULL, NULL, error, priv->ipsec_path, "auto", "--status", 
NULL))
@@ -1575,8 +1575,8 @@ connect_step (NMLibreswanPlugin *self, GError **error)
                                priv->watch_id = g_child_watch_add (priv->pid, child_watch_cb, self);
                        return success;
                }
-               /* fall through */
                priv->connect_step++;
+               /* fallthrough */
 
        case CONNECT_STEP_CHECK_NSS:
                /* Start the IPsec service */
@@ -1587,8 +1587,8 @@ connect_step (NMLibreswanPlugin *self, GError **error)
                                priv->watch_id = g_child_watch_add (priv->pid, child_watch_cb, self);
                        return success;
                }
-               /* fall through */
                priv->connect_step++;
+               /* fallthrough */
 
        case CONNECT_STEP_IPSEC_START:
                /* Start the IPsec service */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]