diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-04-19 20:54:38 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2020-04-19 21:05:32 +0100 |
commit | a2c0fa35d0dc8912b0c1a658234221de61e60840 (patch) | |
tree | bf65d4c9f6cdae943c8c2b6de9078167bd7c9508 | |
parent | 36bc6c652099a5a08a6792b86ab442a0aa50c9a4 (diff) | |
download | gcc-a2c0fa35d0dc8912b0c1a658234221de61e60840.zip gcc-a2c0fa35d0dc8912b0c1a658234221de61e60840.tar.gz gcc-a2c0fa35d0dc8912b0c1a658234221de61e60840.tar.bz2 |
libstdc++: Fix redundant assignment (PR 94629)
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.
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/include/debug/formatter.h | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 40345cc..8d5f0a1 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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 diff --git a/libstdc++-v3/include/debug/formatter.h b/libstdc++-v3/include/debug/formatter.h index 998f805..bb9b3e5 100644 --- a/libstdc++-v3/include/debug/formatter.h +++ b/libstdc++-v3/include/debug/formatter.h @@ -300,7 +300,6 @@ namespace __gnu_debug _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(); _M_variant._M_iterator._M_seq_type = _GLIBCXX_TYPEID(_Sequence); |