commit:     c7e8f1133a42152cc293e6b637985f81bcf8b310
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Tue Jun 19 19:01:54 2018 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue Jun 19 19:01:54 2018 +0000
URL:        https://gitweb.gentoo.org/proj/openrc.git/commit/?id=c7e8f113

checkpath: fix gcc 7 warnings

 src/rc/checkpath.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/rc/checkpath.c b/src/rc/checkpath.c
index 07e5f78a..448c9cf8 100644
--- a/src/rc/checkpath.c
+++ b/src/rc/checkpath.c
@@ -269,11 +269,13 @@ int main(int argc, char **argv)
                switch (opt) {
                case 'D':
                        trunc = true;
+                       /* falls through */
                case 'd':
                        type = inode_dir;
                        break;
                case 'F':
                        trunc = true;
+                       /* falls through */
                case 'f':
                        type = inode_file;
                        break;

Reply via email to