Explorar o código

*: suppress some warnings (see #620)

Michele Caini %!s(int64=5) %!d(string=hai) anos
pai
achega
8c27ca9e36
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      src/entt/core/any.hpp
  2. 1 1
      src/entt/entity/organizer.hpp

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

@@ -42,7 +42,7 @@ class any {
     }
     }
 
 
     template<typename Type>
     template<typename Type>
-    static const void * basic_vtable(const operation op, const any &from, const void *to) {
+    static const void * basic_vtable([[maybe_unused]] const operation op, [[maybe_unused]] const any &from, [[maybe_unused]] const void *to) {
         if constexpr(std::is_void_v<Type>) {
         if constexpr(std::is_void_v<Type>) {
             return nullptr;
             return nullptr;
         } else if constexpr(std::is_lvalue_reference_v<Type>) {
         } else if constexpr(std::is_lvalue_reference_v<Type>) {

+ 1 - 1
src/entt/entity/organizer.hpp

@@ -155,7 +155,7 @@ class basic_organizer final {
     }
     }
 
 
     template<typename... Type>
     template<typename... Type>
-    static std::size_t fill_dependencies(type_list<Type...>, type_info *buffer, const std::size_t count) {
+    static std::size_t fill_dependencies(type_list<Type...>, [[maybe_unused]] type_info *buffer, [[maybe_unused]] const std::size_t count) {
         if constexpr(sizeof...(Type) == 0u) {
         if constexpr(sizeof...(Type) == 0u) {
             return {};
             return {};
         } else {
         } else {