]> Sergey Matveev's repositories - nnn.git/commitdiff
fix compile warning on gcc7 (#32)
authorJohnathan Jenkins <twodopeshaggy@gmail.com>
Mon, 29 May 2017 17:51:44 +0000 (10:51 -0700)
committerArun Prakash Jana <engineerarun@gmail.com>
Mon, 29 May 2017 17:51:44 +0000 (23:21 +0530)
nnn.c

diff --git a/nnn.c b/nnn.c
index 8859d505c9ad513de2ffeb7fd47211ff50c93eff..4b002250bc821fac014b246b8d9b419766ee0e1d 100644 (file)
--- a/nnn.c
+++ b/nnn.c
@@ -1558,7 +1558,7 @@ nochange:
                        }
 
                        /* Fall through to exit */
-               }
+               } // fallthrough
                case SEL_QUIT:
                        dentfree(dents);
                        return;
@@ -2082,7 +2082,7 @@ main(int argc, char *argv[])
        while ((opt = getopt(argc, argv, "dSp:vh")) != -1) {
                switch (opt) {
                case 'S':
-                       bsizeorder = 1;
+                       bsizeorder = 1; // fallthrough
                case 'd':
                        /* Open in detail mode, if set */
                        showdetail = 1;