[Nit] Fixup nontrivial memcall warning

* Silenced -Wnontrivial-memcall in asmjit

* Silenced -Wnontrivial-memcall in tools

* Silenced -Wnontrivial-memcall

* (to squash) Silenced -Wnontrivial-memcall (as reviewed by Jay)

* (to squash) Silenced -Wnontrivial-memcall (as reviewed by Jay [again])
This commit is contained in:
Marcus Minhorst 2025-09-19 15:38:53 -04:00 committed by GitHub
commit e2bd23dfa0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 156 additions and 76 deletions

View file

@ -1,7 +1,8 @@
//
//---------------------------------------------------------------------------
//
// Copyright(C) 2004-2016 Christoph Oelckers
// Copyright 2004-2016 Christoph Oelckers
// Copyright 2017-2025 GZDoom Maintainers and Contributors
// All rights reserved.
//
// This program is free software: you can redistribute it and/or modify
@ -86,7 +87,7 @@ static FDynamicLight *GetLight(FLevelLocals *Level)
FreeList.Pop(ret);
}
else ret = (FDynamicLight*)DynLightArena.Alloc(sizeof(FDynamicLight));
memset(ret, 0, sizeof(*ret));
memset((void*)ret, 0, sizeof(*ret));
ret = new(ret)FDynamicLight();
ret->m_cycler.m_increment = true;
ret->next = Level->lights;