summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/.clang-tidy1
-rw-r--r--src/btree.c2
-rw-r--r--src/filesystem.c1
3 files changed, 4 insertions, 0 deletions
diff --git a/src/.clang-tidy b/src/.clang-tidy
index 5647a8f..b3b1960 100644
--- a/src/.clang-tidy
+++ b/src/.clang-tidy
@@ -4,6 +4,7 @@
Checks: >
-*-magic-numbers,
-bugprone-easily-swappable-parameters,
+ -bugprone-multi-level-implicit-pointer-conversion,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-llvm-header-guard,
-misc-no-recursion,
diff --git a/src/btree.c b/src/btree.c
index 7970796..db7f922 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -394,6 +394,7 @@ zix_btree_leaf_find(const ZixBTree* const t,
t->cmp, t->cmp_data, n->data.leaf.vals, n->n_vals, e, equal);
}
+ZIX_PURE_FUNC
static inline bool
zix_btree_can_remove_from(const ZixBTreeNode* const n)
{
@@ -401,6 +402,7 @@ zix_btree_can_remove_from(const ZixBTreeNode* const n)
return n->n_vals > zix_btree_min_vals(n);
}
+ZIX_PURE_FUNC
static inline bool
zix_btree_is_full(const ZixBTreeNode* const n)
{
diff --git a/src/filesystem.c b/src/filesystem.c
index 61487e9..c6a1fa4 100644
--- a/src/filesystem.c
+++ b/src/filesystem.c
@@ -18,6 +18,7 @@
#include <fcntl.h>
#include <sys/stat.h>
+#include <sys/types.h>
#include <errno.h>
#include <stdbool.h>