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.
This commit is contained in:
Jonathan Wakely 2024-06-20 16:13:10 +01:00
parent f49267e163
commit e2fb245b07
No known key found for this signature in database

View file

@ -154,7 +154,7 @@ namespace __gnu_test
tracker_allocator()
{ }
tracker_allocator(const tracker_allocator&)
tracker_allocator(const tracker_allocator& a) : Alloc(a)
{ }
~tracker_allocator()