Fix unused parameter warnings introduced in earlier patch
authorJonathan Wakely <jwakely@redhat.com>
Tue, 13 Nov 2018 23:02:22 +0000 (23:02 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 13 Nov 2018 23:02:22 +0000 (23:02 +0000)
* src/c++17/memory_resource.cc (_Pool::deallocate): Restore
attributes to parameters that are only used in assertions.

From-SVN: r266091

libstdc++-v3/ChangeLog
libstdc++-v3/src/c++17/memory_resource.cc

index af68533baa2f2a5c40c3f2215724d81dc174b2f5..03aaeca1af55bb4cfc5fc77d8caeef9019987ba3 100644 (file)
@@ -1,5 +1,8 @@
 2018-11-13  Jonathan Wakely  <jwakely@redhat.com>
 
+       * src/c++17/memory_resource.cc (_Pool::deallocate): Restore
+       attributes to parameters that are only used in assertions.
+
        * src/c++17/memory_resource.cc (bitset::find_first_unset()): Remove
        unused function.
        (bitset::get_first_unset()): Remove loop, if there's are unset bits
index b553606f55286bd73fc59afc839c78f192b7eaa5..cb91e5147cec72ceb7012d0143a11b7434135aed 100644 (file)
@@ -940,7 +940,8 @@ namespace pmr
   }
 
   void
-  __pool_resource::deallocate(void* p, size_t bytes, size_t alignment)
+  __pool_resource::deallocate(void* p, size_t bytes [[maybe_unused]],
+                             size_t alignment [[maybe_unused]])
   {
     const auto it
       = std::lower_bound(_M_unpooled.begin(), _M_unpooled.end(), p);