X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=include%2Furcu%2Frculfhash.h;h=29dd88f1f16b0ea320ffa82ef2ed0596c7aaba65;hp=cbf513ec848c37744bb084a72ff66dd19f8c1816;hb=1e41ec3b07e4f8eb71c3ace758c76a7ad1784c73;hpb=d7c76f85442125bcfef40f58b1c6fc1bd5ce4ffd diff --git a/include/urcu/rculfhash.h b/include/urcu/rculfhash.h index cbf513e..29dd88f 100644 --- a/include/urcu/rculfhash.h +++ b/include/urcu/rculfhash.h @@ -105,7 +105,7 @@ typedef int (*cds_lfht_match_fct)(struct cds_lfht_node *node, const void *key); * (detection of memory corruption). */ static inline -void cds_lfht_node_init(struct cds_lfht_node *node) +void cds_lfht_node_init(struct cds_lfht_node *node __attribute__((unused))) { } @@ -499,7 +499,7 @@ int cds_lfht_del(struct cds_lfht *ht, struct cds_lfht_node *node); * This function does not issue any memory barrier. */ extern -int cds_lfht_is_node_deleted(struct cds_lfht_node *node); +int cds_lfht_is_node_deleted(const struct cds_lfht_node *node); /* * cds_lfht_resize - Force a hash table resize