summaryrefslogtreecommitdiffstats
path: root/include/zix/hash.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-06-22 20:12:50 -0400
committerDavid Robillard <d@drobilla.net>2024-06-22 20:19:27 -0400
commit384b073bdad676bd3e1e39b527321e9a67bfa491 (patch)
treee56722ca117ecdab51b61b69d69c0fd5fdb158e3 /include/zix/hash.h
parentb7e4e28dccdff26bc5e402926e61039f8e9ee966 (diff)
downloadzix-384b073bdad676bd3e1e39b527321e9a67bfa491.tar.gz
zix-384b073bdad676bd3e1e39b527321e9a67bfa491.tar.bz2
zix-384b073bdad676bd3e1e39b527321e9a67bfa491.zip
Add ZIX_NODISCARD attribute to allocating, accessor, and pure API
Diffstat (limited to 'include/zix/hash.h')
-rw-r--r--include/zix/hash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/zix/hash.h b/include/zix/hash.h
index 2bde652..6cd2271 100644
--- a/include/zix/hash.h
+++ b/include/zix/hash.h
@@ -103,6 +103,7 @@ typedef bool (*ZixKeyEqualFunc)(const ZixHashKey* ZIX_NONNULL a,
@param equal_func A function to test keys for equality.
*/
ZIX_API
+ZIX_NODISCARD
ZixHash* ZIX_ALLOCATED
zix_hash_new(ZixAllocator* ZIX_NULLABLE allocator,
ZixKeyFunc ZIX_NONNULL key_func,