diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2025-06-25 13:59:15 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2025-07-26 14:19:51 -0400 |
commit | 2cd69d3ee34a6d2c21aa64aedf262827eb83826f (patch) | |
tree | 9e98b40ac2a7fc6809f7e2bb3ac0c42eecad735a /src/bftw.c | |
parent | 1b1e5a4707d681e4b38df56e83db1be9c07723b8 (diff) | |
download | bfs-2cd69d3ee34a6d2c21aa64aedf262827eb83826f.tar.xz |
Use C23 [[attribute]] syntax
Diffstat (limited to 'src/bftw.c')
-rw-r--r-- | src/bftw.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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__ |