Sfoglia il codice sorgente

meta: suppress warnings

Michele Caini 5 anni fa
parent
commit
eb2077b95b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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,