Skip to content

Commit

Permalink
Address a few Windows CI Issues (#1911)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll authored and azeey committed Jul 11, 2024
1 parent 894bce1 commit 9d35f5c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/gz/sim/detail/EntityComponentManager.hh
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,18 @@ namespace traits
template<typename T>
struct HasEqualityOperator
{
#if !defined(_MSC_VER)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wnonnull"
#endif
enum
{
// False positive codecheck "Using C-style cast"
value = !std::is_same<decltype(*(T*)(0) == *(T*)(0)), TestEqualityOperator>::value // NOLINT
};
#if !defined(_MSC_VER)
#pragma GCC diagnostic pop
#endif
};
}

Expand Down

0 comments on commit 9d35f5c

Please sign in to comment.