Przeglądaj źródła

meta: suppress warnings

Michele Caini 5 lat temu
rodzic
commit
eb2077b95b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/entt/meta/meta.hpp

+ 1 - 1
src/entt/meta/meta.hpp

@@ -169,7 +169,7 @@ class ENTT_API meta_node {
         return ext;
         return ext;
     }
     }
 
 
-    [[nodiscard]] static meta_ctor_node * meta_default_constructor(meta_type_node *type) {
+    [[nodiscard]] static meta_ctor_node * meta_default_constructor([[maybe_unused]] meta_type_node *type) {
         if constexpr(std::is_default_constructible_v<Type>) {
         if constexpr(std::is_default_constructible_v<Type>) {
             static internal::meta_ctor_node node{
             static internal::meta_ctor_node node{
                 type,
                 type,