mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-04 01:04:26 +08:00
libstdc++: Initialize base in test allocator's constructor
This fixes a warning from one of the test allocators:
warning: base class 'class std::allocator<__gnu_test::copy_tracker>' should be explicitly initialized in the copy constructor [-Wextra]
libstdc++-v3/ChangeLog:
* testsuite/util/testsuite_allocator.h (tracker_allocator):
Initialize base class in copy constructor.
(cherry picked from commit e2fb245b07
)
This commit is contained in:
parent
135be552d1
commit
595e3fa771
@ -154,7 +154,7 @@ namespace __gnu_test
|
||||
tracker_allocator()
|
||||
{ }
|
||||
|
||||
tracker_allocator(const tracker_allocator&)
|
||||
tracker_allocator(const tracker_allocator& a) : Alloc(a)
|
||||
{ }
|
||||
|
||||
~tracker_allocator()
|
||||
|
Loading…
Reference in New Issue
Block a user