summaryrefslogtreecommitdiffstats
path: root/src/trie.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2025-05-26 10:26:12 -0400
committerTavian Barnes <tavianator@tavianator.com>2025-05-26 10:45:45 -0400
commit89969b4b0bea3bd4cddf97c989ca63f3a1aaa07c (patch)
tree58a244a7121a0000313b2044c139df2340e72ee1 /src/trie.h
parent6fa72ff42d95dfd883d59ce7cf6bdc74abebf015 (diff)
downloadbfs-89969b4b0bea3bd4cddf97c989ca63f3a1aaa07c.tar.xz
Add support for __attribute__((counted_by(...)))
Diffstat (limited to 'src/trie.h')
-rw-r--r--src/trie.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trie.h b/src/trie.h
index d8cecab..19bd81d 100644
--- a/src/trie.h
+++ b/src/trie.h
@@ -21,7 +21,7 @@ struct trie_leaf {
/** The length of the key in bytes. */
size_t length;
/** The key itself, stored inline. */
- char key[];
+ char key[] _counted_by(length);
};
/**