checkpath: fix gcc 7 warnings

This commit is contained in:
William Hubbs 2018-06-19 14:01:54 -05:00
parent 47e4bfae57
commit c7e8f1133a

View File

@ -269,11 +269,13 @@ int main(int argc, char **argv)
switch (opt) { switch (opt) {
case 'D': case 'D':
trunc = true; trunc = true;
/* falls through */
case 'd': case 'd':
type = inode_dir; type = inode_dir;
break; break;
case 'F': case 'F':
trunc = true; trunc = true;
/* falls through */
case 'f': case 'f':
type = inode_file; type = inode_file;
break; break;