X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Frculfhash.c;h=de90d71051133d129fd39cfeab927a6aa3bb8b1a;hb=5152f6df156d6ccb234965d1b3d26b167bd6b94e;hp=b25c1c182ca77e913ad1b100f9254329087fff2b;hpb=2eba8e397d36e8cecaf4731b4f892dc57f32a382;p=lttng-ust.git diff --git a/liblttng-ust/rculfhash.c b/liblttng-ust/rculfhash.c index b25c1c18..de90d710 100644 --- a/liblttng-ust/rculfhash.c +++ b/liblttng-ust/rculfhash.c @@ -334,7 +334,8 @@ void lttng_ust_lfht_iter_debug_set_ht(struct lttng_ust_lfht *ht, struct lttng_us #else static -void lttng_ust_lfht_iter_debug_set_ht(struct lttng_ust_lfht *ht, struct lttng_ust_lfht_iter *iter) +void lttng_ust_lfht_iter_debug_set_ht(struct lttng_ust_lfht *ht __attribute__((unused)), + struct lttng_ust_lfht_iter *iter __attribute__((unused))) { } @@ -439,7 +440,10 @@ unsigned int fls_u64(uint64_t x) #endif #ifndef HAS_FLS_U64 -static __attribute__((unused)) +static +unsigned int fls_u64(uint64_t x) + __attribute__((unused)); +static unsigned int fls_u64(uint64_t x) { unsigned int r = 64; @@ -476,7 +480,10 @@ unsigned int fls_u64(uint64_t x) #endif #ifndef HAS_FLS_U32 -static __attribute__((unused)) +static +unsigned int fls_u32(uint32_t x) + __attribute__((unused)); +static unsigned int fls_u32(uint32_t x) { unsigned int r = 32; @@ -1099,7 +1106,8 @@ void lttng_ust_lfht_lookup(struct lttng_ust_lfht *ht, unsigned long hash, iter->next = next; } -void lttng_ust_lfht_next_duplicate(struct lttng_ust_lfht *ht, lttng_ust_lfht_match_fct match, +void lttng_ust_lfht_next_duplicate(struct lttng_ust_lfht *ht __attribute__((unused)), + lttng_ust_lfht_match_fct match, const void *key, struct lttng_ust_lfht_iter *iter) { struct lttng_ust_lfht_node *node, *next; @@ -1133,7 +1141,8 @@ void lttng_ust_lfht_next_duplicate(struct lttng_ust_lfht *ht, lttng_ust_lfht_mat iter->next = next; } -void lttng_ust_lfht_next(struct lttng_ust_lfht *ht, struct lttng_ust_lfht_iter *iter) +void lttng_ust_lfht_next(struct lttng_ust_lfht *ht __attribute__((unused)), + struct lttng_ust_lfht_iter *iter) { struct lttng_ust_lfht_node *node, *next;