From 036a9a04205b302f3420df3274daf29c810c2115 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Fri, 7 Dec 2018 16:42:28 +0000 Subject: [PATCH] [libcxx] Add paranoid cast-to-void in comma operator llvm-svn: 348611 --- libcxx/include/memory | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/include/memory b/libcxx/include/memory index 9fca9fe..3e8f593 100644 --- a/libcxx/include/memory +++ b/libcxx/include/memory @@ -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)); } -- 2.7.4