Skip to content

Commit

Permalink
Merge pull request #53 from NobodyXu/fix
Browse files Browse the repository at this point in the history
Fix compilatio error by using `[[fallthrough]]`
  • Loading branch information
NobodyXu authored Dec 26, 2023
2 parents 18d1316 + 4603e34 commit 4b1963d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utility.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ void visit_all_subdirs(const char *path, subdir_visiter visiter, ...)
// Check if it is a dir after resolution
if (!isdir(path, path_fd, ent->d_name))
break;
[[fallthrough]];

case DT_DIR:
if (strcmp(ent->d_name, ".") != 0 && strcmp(ent->d_name, "..") != 0)
Expand Down

0 comments on commit 4b1963d

Please sign in to comment.