From 2cd69d3ee34a6d2c21aa64aedf262827eb83826f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 25 Jun 2025 13:59:15 -0400 Subject: Use C23 [[attribute]] syntax --- src/bftw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/bftw.c') 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__ -- cgit v1.2.3