Browse Source

sparse set: avoid warning due to missing [[nodiscard]]

skypjack 9 months ago
parent
commit
330bf8e120
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/entity/sparse_set.hpp

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

@@ -1087,7 +1087,7 @@ public:
     }
     }
 
 
     /*! @copydoc info */
     /*! @copydoc info */
-    [[deprecated("use ::info instead")]] const type_info &type() const noexcept {
+    [[deprecated("use ::info instead")]] [[nodiscard]] const type_info &type() const noexcept {
         return info();
         return info();
     }
     }