Browse Source

meta: suppress wrong linter warning

Michele Caini 1 year ago
parent
commit
41c41e9e30
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/entt/meta/meta.hpp

+ 2 - 0
src/entt/meta/meta.hpp

@@ -1422,6 +1422,7 @@ public:
      * @param sz Number of parameters to use to invoke the function.
      * @return A wrapper containing the returned value, if any.
      */
+    // NOLINTNEXTLINE(modernize-use-nodiscard)
     meta_any invoke(const id_type id, meta_handle instance, meta_any *const args, const size_type sz) const {
         if(node.details) {
             if(auto *elem = internal::find_member<&internal::meta_func_node::id>(node.details->func, id); elem != nullptr) {
@@ -1464,6 +1465,7 @@ public:
      * @return True in case of success, false otherwise.
      */
     template<typename Type>
+    // NOLINTNEXTLINE(modernize-use-nodiscard)
     bool set(const id_type id, meta_handle instance, Type &&value) const {
         const auto candidate = data(id);
         return candidate && candidate.set(std::move(instance), std::forward<Type>(value));