[libcxx] Add paranoid cast-to-void in comma operator

llvm-svn: 348611
This commit is contained in:
Louis Dionne 2018-12-07 16:42:28 +00:00
parent 32aff2eb79
commit 036a9a0420
1 changed files with 1 additions and 1 deletions

View File

@ -1613,7 +1613,7 @@ struct _LIBCPP_TEMPLATE_VIS allocator_traits
void
__construct_forward(allocator_type& __a, _Ptr __begin1, _Ptr __end1, _Ptr& __begin2)
{
for (; __begin1 != __end1; ++__begin1, ++__begin2)
for (; __begin1 != __end1; ++__begin1, (void) ++__begin2)
construct(__a, _VSTD::__to_raw_pointer(__begin2), _VSTD::move_if_noexcept(*__begin1));
}