aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-06-20 16:13:10 +0100
committerJonathan Wakely <jwakely@redhat.com>2024-06-21 10:10:09 +0100
commite2fb245b07f489ed5bfd9a945e0053b4a3211245 (patch)
tree00b14997bf16e3c283faa38eabefa8b11d4ebc68
parentf49267e1636872128249431e9e5d20c0908b7e8e (diff)
downloadgcc-e2fb245b07f489ed5bfd9a945e0053b4a3211245.zip
gcc-e2fb245b07f489ed5bfd9a945e0053b4a3211245.tar.gz
gcc-e2fb245b07f489ed5bfd9a945e0053b4a3211245.tar.bz2
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.
-rw-r--r--libstdc++-v3/testsuite/util/testsuite_allocator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/testsuite/util/testsuite_allocator.h b/libstdc++-v3/testsuite/util/testsuite_allocator.h
index b7739f1..2f9c453 100644
--- a/libstdc++-v3/testsuite/util/testsuite_allocator.h
+++ b/libstdc++-v3/testsuite/util/testsuite_allocator.h
@@ -154,7 +154,7 @@ namespace __gnu_test
tracker_allocator()
{ }
- tracker_allocator(const tracker_allocator&)
+ tracker_allocator(const tracker_allocator& a) : Alloc(a)
{ }
~tracker_allocator()