Browse Source

memory: suppress warnings due to unreferenced parameters

Michele Caini 4 years ago
parent
commit
e69cb3d950
2 changed files with 2 additions and 1 deletions
  1. 1 0
      TODO
  2. 1 1
      src/entt/core/memory.hpp

+ 1 - 0
TODO

@@ -3,6 +3,7 @@
 * add examples (and credits) from @alanjfs :)
 
 WIP:
+* resource handle: add comparison operators
 * get rid of storage_traits class template
 * uses-allocator construction: any (with allocator support), cache, poly, ...
 * add an ENTT_NOEXCEPT with args and use it to make ie compressed_pair conditionally noexcept

+ 1 - 1
src/entt/core/memory.hpp

@@ -173,7 +173,7 @@ namespace internal {
 template<typename Type>
 struct uses_allocator_construction {
     template<typename Allocator, typename... Params>
-    static constexpr auto args(const Allocator &allocator, Params &&...params) ENTT_NOEXCEPT {
+    static constexpr auto args([[maybe_unused]] const Allocator &allocator, Params &&...params) ENTT_NOEXCEPT {
         if constexpr(!std::uses_allocator_v<Type, Allocator> && std::is_constructible_v<Type, Params...>) {
             return std::forward_as_tuple(std::forward<Params>(params)...);
         } else {