Просмотр исходного кода

meta: suppress wrong warning by clang

Michele Caini 1 год назад
Родитель
Сommit
9ae5a3d7d4
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/entt/meta/meta.hpp

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

@@ -1505,6 +1505,7 @@ public:
 
     /*! @copydoc meta_data::operator== */
     [[nodiscard]] bool operator==(const meta_type &other) const noexcept {
+        // NOLINTNEXTLINE(clang-analyzer-core.NonNullParamChecker)
         return (ctx == other.ctx) && ((node.info == nullptr) == (other.node.info == nullptr)) && (node.info == nullptr || (*node.info == *other.node.info));
     }