[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:
parent
415950fb9c
commit
e2bd23dfa0
14 changed files with 156 additions and 76 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue