summaryrefslogtreecommitdiffstats
path: root/src/mtab.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/mtab.c
parentfb4760db85c552b0f538f7af2ad40fa631c20540 (diff)
downloadbfs-f4e8084414e07a8e03cb279090bbcf9eea76ed1e.tar.xz
config: New attr_maybe_unused macro
Diffstat (limited to 'src/mtab.c')
-rw-r--r--src/mtab.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mtab.c b/src/mtab.c
index 384fdfc..6b6f9d1 100644
--- a/src/mtab.c
+++ b/src/mtab.c
@@ -59,7 +59,8 @@ struct bfs_mtab {
/**
* Add an entry to the mount table.
*/
-static inline int bfs_mtab_add(struct bfs_mtab *mtab, const char *path, const char *type) {
+attr_maybe_unused
+static int bfs_mtab_add(struct bfs_mtab *mtab, const char *path, const char *type) {
struct bfs_mtab_entry entry = {
.path = strdup(path),
.type = strdup(type),