diff --git a/bin/ls/ls.c b/bin/ls/ls.c index 5d88e382039e..60505cb184b3 100644 --- a/bin/ls/ls.c +++ b/bin/ls/ls.c @@ -461,6 +461,8 @@ traverse(int argc, char *argv[], int options) if (!f_recursive && chp != NULL) (void)fts_set(ftsp, p, FTS_SKIP); break; + default: + break; } if (errno) err(1, "fts_read"); @@ -573,6 +575,7 @@ display(FTSENT *p, FTSENT *list) f_notabs = 0; /* fall through */ default: + break; } maxinode = makenines(maxinode); maxblock = makenines(maxblock); diff --git a/bin/ls/print.c b/bin/ls/print.c index 87fcf6441f37..5887b70ad18c 100644 --- a/bin/ls/print.c +++ b/bin/ls/print.c @@ -381,6 +381,7 @@ printtype(u_int mode) (void)putchar('%'); return (1); default: + break; } if (mode & (S_IXUSR | S_IXGRP | S_IXOTH)) { (void)putchar('*');