Skip to content

Commit

Permalink
meta: suppress wrong warning by clang
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Jan 27, 2025
1 parent 0aa6cb8 commit 9ae5a3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/entt/meta/meta.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1505,6 +1505,7 @@ class meta_type {

/*! @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));
}

Expand Down

0 comments on commit 9ae5a3d

Please sign in to comment.