mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-27 04:43:08 -04:00
Merge branch '566-mem-c-fprintf-compiler-warning' into 'master'
Resolve "mem.c - fprintf Compiler Warning" Closes #566 See merge request isc-projects/bind9!821
This commit is contained in:
commit
d5709c5f52
1 changed files with 5 additions and 1 deletions
|
|
@ -47,9 +47,13 @@ typedef atomic_uint_fast32_t isc_refcount_t;
|
|||
* \brief Returns current number of references.
|
||||
* \param[in] ref pointer to reference counter.
|
||||
* \returns current value of reference counter.
|
||||
*
|
||||
* Undo implict promotion to 64 bits in our Windows implementation of
|
||||
* atomic_load_explicit() by casting to uint_fast32_t.
|
||||
*/
|
||||
|
||||
#define isc_refcount_current(target) \
|
||||
atomic_load_explicit(target, memory_order_relaxed)
|
||||
(uint_fast32_t)atomic_load_explicit(target, memory_order_relaxed)
|
||||
|
||||
/** \def isc_refcount_destroy(ref)
|
||||
* \brief a destructor that makes sure that all references were cleared.
|
||||
|
|
|
|||
Loading…
Reference in a new issue