libstdc++: Fix redundant assignment (PR 94629)
authorJonathan Wakely <jwakely@redhat.com>
Sun, 19 Apr 2020 19:54:38 +0000 (20:54 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Sun, 19 Apr 2020 20:05:32 +0000 (21:05 +0100)
This appears to be a copy&paste error, which cppcheck diagnoses.

PR other/94629
* include/debug/formatter.h (_Error_formatter::_Parameter): Fix
redundant assignment in constructor.

libstdc++-v3/ChangeLog
libstdc++-v3/include/debug/formatter.h

index 40345cc7044f10c0082d992df6cd34d7ad528cf0..8d5f0a12fd65a541bef3aed12085cac3bda2c2f5 100644 (file)
@@ -1,3 +1,9 @@
+2020-04-19  Jonathan Wakely  <jwakely@redhat.com>
+
+       PR other/94629
+       * include/debug/formatter.h (_Error_formatter::_Parameter): Fix
+       redundant assignment in constructor.
+
 2020-04-18  Jonathan Wakely  <jwakely@redhat.com>
 
        * include/std/chrono (duration, time_point): Define operator<=> and
index 998f8056601217dff086967c545de5010bdfb755..bb9b3e5653a410b549f325f7568a566ad6b85d96 100644 (file)
@@ -299,7 +299,6 @@ namespace __gnu_debug
          _M_variant._M_iterator._M_name = __name;
          _M_variant._M_iterator._M_address = std::__addressof(__it);
          _M_variant._M_iterator._M_type = _GLIBCXX_TYPEID(_Iterator);
-         _M_variant._M_iterator._M_constness =
          _M_variant._M_iterator._M_constness =
            __it._S_constant() ? __const_iterator : __mutable_iterator;
          _M_variant._M_iterator._M_sequence = __it._M_get_sequence();