summaryrefslogtreecommitdiffstats
path: root/src/bftw.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2025-06-25 13:59:15 -0400
committerTavian Barnes <tavianator@tavianator.com>2025-07-26 14:19:51 -0400
commit2cd69d3ee34a6d2c21aa64aedf262827eb83826f (patch)
tree9e98b40ac2a7fc6809f7e2bb3ac0c42eecad735a /src/bftw.c
parent1b1e5a4707d681e4b38df56e83db1be9c07723b8 (diff)
downloadbfs-2cd69d3ee34a6d2c21aa64aedf262827eb83826f.tar.xz
Use C23 [[attribute]] syntax
Diffstat (limited to 'src/bftw.c')
-rw-r--r--src/bftw.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bftw.c b/src/bftw.c
index 0ca6f34..a884e92 100644
--- a/src/bftw.c
+++ b/src/bftw.c
@@ -253,7 +253,8 @@ struct bftw_file {
/** The length of the file's name. */
size_t namelen;
/** The file's name. */
- char name[]; // _counted_by(namelen + 1)
+ // [[_counted_by(namelen + 1)]]
+ char name[];
};
/**
@@ -1439,7 +1440,7 @@ static bool bftw_must_stat(const struct bftw_state *state, size_t depth, enum bf
if (!(bftw_stat_flags(state, depth) & BFS_STAT_NOFOLLOW)) {
return true;
}
- _fallthrough;
+ [[fallthrough]];
default:
#if __linux__