re PR libstdc++/64657 (Support iterators with overloaded operator-comma)
authorJonathan Wakely <jwakely@redhat.com>
Mon, 22 Jun 2015 15:09:14 +0000 (16:09 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 22 Jun 2015 15:09:14 +0000 (16:09 +0100)
PR libstdc++/64657
* include/bits/stl_uninitialized.h
(__uninitialized_copy::__uninit_copy): Cast expression to void.

From-SVN: r224736

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_uninitialized.h

index 345bf945ded75b4f102fc67ffc11ad6f25e4a383..290af6851ce54c67eb1bef299d7c3e497334fb00 100644 (file)
@@ -1,3 +1,9 @@
+2015-06-22  Jonathan Wakely  <jwakely@redhat.com>
+
+       PR libstdc++/64657
+       * include/bits/stl_uninitialized.h
+       (__uninitialized_copy::__uninit_copy): Cast expression to void.
+
 2015-06-17  Jonathan Wakely  <jwakely@redhat.com>
 
        PR libstdc++/55409
index 715cb58de5ed78d0078f5e4118d5e302298a8862..045bdd75a0c2fa2921d538a6a9db5b700b3d2e13 100644 (file)
@@ -71,7 +71,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
          _ForwardIterator __cur = __result;
          __try
            {
-             for (; __first != __last; ++__first, ++__cur)
+             for (; __first != __last; ++__first, (void)++__cur)
                std::_Construct(std::__addressof(*__cur), *__first);
              return __cur;
            }