Skip to content

Commit

Permalink
Fix compilatio error by using [[fallthrough]]
Browse files Browse the repository at this point in the history
Signed-off-by: Jiahao XU <[email protected]>
  • Loading branch information
NobodyXu committed Dec 26, 2023
1 parent 18d1316 commit 4603e34
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 4603e34

Please sign in to comment.