--- a/src/cx/hash_key.h Thu Nov 07 20:22:56 2024 +0100 +++ b/src/cx/hash_key.h Thu Nov 07 22:46:58 2024 +0100 @@ -70,6 +70,7 @@ * * @param key the key, the hash shall be computed for */ +cx_attr_nonnull void cx_hash_murmur(CxHashKey *key); /** @@ -80,7 +81,8 @@ * @param str the string * @return the hash key */ -__attribute__((__warn_unused_result__)) +cx_attr_nodiscard +cx_attr_cstr_arg(1) CxHashKey cx_hash_key_str(const char *str); /** @@ -90,7 +92,8 @@ * @param len the length * @return the hash key */ -__attribute__((__warn_unused_result__)) +cx_attr_nodiscard +cx_attr_access_r(1, 2) CxHashKey cx_hash_key_bytes( const unsigned char *bytes, size_t len @@ -107,6 +110,8 @@ * @param len the length of object in memory * @return the hash key */ +cx_attr_nodiscard +cx_attr_access_r(1, 2) __attribute__((__warn_unused_result__)) CxHashKey cx_hash_key( const void *obj,