Core/Objects: Silence clang warning on windows

This commit is contained in:
Shauren
2026-05-10 14:41:43 +02:00
parent e49105cb68
commit 1d029b8ba0
+2 -2
View File
@@ -371,14 +371,14 @@ class TC_GAME_API BaseEntity
inline BaseEntity* UF::UpdateFieldHolder::GetOwner()
{
#if TRINITY_COMPILER_IS_GNU
#if TRINITY_COMPILER_IS_GCC || TRINITY_COMPILER_IS_CLANG
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Winvalid-offsetof"
#endif
return reinterpret_cast<BaseEntity*>(reinterpret_cast<std::byte*>(this) - offsetof(BaseEntity, m_values));
#if TRINITY_COMPILER_IS_GNU
#if TRINITY_COMPILER_IS_GCC || TRINITY_COMPILER_IS_CLANG
#pragma GCC diagnostic pop
#endif
}