Skip to content

Commit dd7f574

Browse files
author
halx99
committed
Fix warnings.
1 parent e788eca commit dd7f574

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

yasio/detail/object_pool.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ template <class _Ty, size_t _ElemCount = SZ(8, k) / sizeof(_Ty)> class object_po
213213

214214
const_pointer address(const_reference _Val) const
215215
{ // return address of nonmutable _Val
216-
return ((const_pointer) & (char &)_Val);
216+
return ((const_pointer) & (const char &)_Val);
217217
}
218218

219219
object_pool_allocator() throw()
@@ -242,6 +242,7 @@ template <class _Ty, size_t _ElemCount = SZ(8, k) / sizeof(_Ty)> class object_po
242242
pointer allocate(size_type count)
243243
{ // allocate array of _Count elements
244244
assert(count == 1);
245+
(void)count;
245246
return static_cast<pointer>(_Mempool.get());
246247
}
247248

0 commit comments

Comments
 (0)