summaryrefslogtreecommitdiffstats
path: root/src/xspawn.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-11-15 10:04:57 -0500
committerTavian Barnes <tavianator@tavianator.com>2023-11-15 10:04:57 -0500
commitf4e8084414e07a8e03cb279090bbcf9eea76ed1e (patch)
treeabdd3472df66c5661e494a0e5bf358b1ee8124ea /src/xspawn.c
parentfb4760db85c552b0f538f7af2ad40fa631c20540 (diff)
downloadbfs-f4e8084414e07a8e03cb279090bbcf9eea76ed1e.tar.xz
config: New attr_maybe_unused macro
Diffstat (limited to 'src/xspawn.c')
-rw-r--r--src/xspawn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xspawn.c b/src/xspawn.c
index 3974768..51432dd 100644
--- a/src/xspawn.c
+++ b/src/xspawn.c
@@ -73,7 +73,8 @@ int bfs_spawn_destroy(struct bfs_spawn *ctx) {
}
/** Set some posix_spawnattr flags. */
-static inline int bfs_spawn_addflags(struct bfs_spawn *ctx, short flags) {
+attr_maybe_unused
+static int bfs_spawn_addflags(struct bfs_spawn *ctx, short flags) {
short prev;
errno = posix_spawnattr_getflags(&ctx->attr, &prev);
if (errno != 0) {