}
dns_rdataset_init(&rdataset);
- check_assertion(dns_db_find(db1, dns_rootname, v2,
- dns_rdatatype_soa, 0, 0, NULL,
- name, &rdataset, NULL));
+ check_assertion((void)dns_db_find(db1, dns_rootname, v2,
+ dns_rdatatype_soa, 0, 0, NULL,
+ name, &rdataset, NULL));
}
/*
* order.
*/
#if defined(ISC_RWLOCK_USESTDATOMIC)
- atomic_fetch_sub_explicit(&rwl->write_completions, 1,
- memory_order_relaxed);
+ (void)atomic_fetch_sub_explicit(&rwl->write_completions, 1,
+ memory_order_relaxed);
#else
(void)isc_atomic_xadd(&rwl->write_completions, -1);
#endif
* We are the only reader and have been upgraded.
* Now jump into the head of the writer waiting queue.
*/
- atomic_fetch_sub_explicit(&rwl->write_completions, 1,
- memory_order_relaxed);
- } else
+ (void)atomic_fetch_sub_explicit(&rwl->write_completions,
+ 1, memory_order_relaxed);
+ } else {
return (ISC_R_LOCKBUSY);
-
+ }
}
#else
{
INSIST((prev_readers & WRITER_ACTIVE) != 0);
/* Complete write */
- atomic_fetch_sub_explicit(&rwl->cnt_and_flag, WRITER_ACTIVE,
- memory_order_relaxed);
- atomic_fetch_add_explicit(&rwl->write_completions, 1,
- memory_order_relaxed);
+ (void)atomic_fetch_sub_explicit(&rwl->cnt_and_flag,
+ WRITER_ACTIVE,
+ memory_order_relaxed);
+ (void)atomic_fetch_add_explicit(&rwl->write_completions, 1,
+ memory_order_relaxed);
}
#else
{
* we are done.
*/
#if defined(ISC_RWLOCK_USESTDATOMIC)
- atomic_fetch_sub_explicit(&rwl->cnt_and_flag, WRITER_ACTIVE,
- memory_order_relaxed);
- atomic_fetch_add_explicit(&rwl->write_completions, 1,
- memory_order_relaxed);
+ (void)atomic_fetch_sub_explicit(&rwl->cnt_and_flag,
+ WRITER_ACTIVE,
+ memory_order_relaxed);
+ (void)atomic_fetch_add_explicit(&rwl->write_completions, 1,
+ memory_order_relaxed);
#else
(void)isc_atomic_xadd(&rwl->cnt_and_flag, -WRITER_ACTIVE);
(void)isc_atomic_xadd(&rwl->write_completions, 1);
static inline void
incrementcounter(isc_stats_t *stats, int counter) {
#if ISC_PLATFORM_HAVESTDATOMIC
- atomic_fetch_add_explicit(&stats->counters[counter], 1,
- memory_order_relaxed);
+ (void)atomic_fetch_add_explicit(&stats->counters[counter], 1,
+ memory_order_relaxed);
#elif ISC_STATS_HAVEATOMICQ
isc_atomic_xaddq((int64_t *)&stats->counters[counter], 1);
#elif ISC_STATS_USEMULTIFIELDS
static inline void
decrementcounter(isc_stats_t *stats, int counter) {
#if ISC_PLATFORM_HAVESTDATOMIC
- atomic_fetch_sub_explicit(&stats->counters[counter], 1,
- memory_order_relaxed);
+ (void)atomic_fetch_sub_explicit(&stats->counters[counter], 1,
+ memory_order_relaxed);
#elif ISC_STATS_HAVEATOMICQ
- isc_atomic_xaddq((int64_t *)&stats->counters[counter], -1);
+ (void)isc_atomic_xaddq((int64_t *)&stats->counters[counter], -1);
#elif ISC_STATS_USEMULTIFIELDS
int32_t prev =
isc_atomic_xadd((int32_t *)&stats->counters[counter].lo, -1);
if (prev == 0) {
- isc_atomic_xadd((int32_t *)&stats->counters[counter].hi, -1);
+ (void)isc_atomic_xadd((int32_t *)&stats->counters[counter].hi,
+ -1);
}
#else
stats->counters[counter]--;