diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-11-16 12:25:09 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-12-18 15:37:20 -0500 |
commit | 5b38f658ee42bef05cecb6cadec65b25d9e94993 (patch) | |
tree | 7ee304714729b360a3d45658ca27358e03cd54e3 /src/fsade.c | |
parent | fd91097055f095fdd827ef8751d9534f59a89404 (diff) | |
download | bfs-5b38f658ee42bef05cecb6cadec65b25d9e94993.tar.xz |
config: New variadic attr(...) macro
Diffstat (limited to 'src/fsade.c')
-rw-r--r-- | src/fsade.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fsade.c b/src/fsade.c index 4d22d99..a48eeb0 100644 --- a/src/fsade.c +++ b/src/fsade.c @@ -32,7 +32,7 @@ * Many of the APIs used here don't have *at() variants, but we can try to * emulate something similar if /proc/self/fd is available. */ -attr_maybe_unused +attr(maybe_unused) static const char *fake_at(const struct BFTW *ftwbuf) { static atomic int proc_works = -1; @@ -66,7 +66,7 @@ fail: return ftwbuf->path; } -attr_maybe_unused +attr(maybe_unused) static void free_fake_at(const struct BFTW *ftwbuf, const char *path) { if (path != ftwbuf->path) { dstrfree((dchar *)path); @@ -76,7 +76,7 @@ static void free_fake_at(const struct BFTW *ftwbuf, const char *path) { /** * Check if an error was caused by the absence of support or data for a feature. */ -attr_maybe_unused +attr(maybe_unused) static bool is_absence_error(int error) { // If the OS doesn't support the feature, it's obviously not enabled for // any files |