Skip to content

Commit

Permalink
Fixed compiling warnining about clearing a non-trivial type GrandOrgu…
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg68 committed Nov 29, 2024
1 parent 6eeb863 commit e1b6984
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/grandorgue/sound/GOSoundSamplerPool.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright 2006 Milan Digital Audio LLC
* Copyright 2009-2023 GrandOrgue contributors (see AUTHORS)
* Copyright 2009-2024 GrandOrgue contributors (see AUTHORS)
* License GPL-2.0 or later
* (https://www.gnu.org/licenses/old-licenses/gpl-2.0.html).
*/
Expand Down Expand Up @@ -53,7 +53,7 @@ GOSoundSampler *GOSoundSamplerPool::GetSampler() {
m_SamplerCount.fetch_add(1);
}
if (sampler)
memset(sampler, 0, sizeof(GOSoundSampler));
memset((void *)sampler, 0, sizeof(GOSoundSampler));
return sampler;
}

Expand Down

0 comments on commit e1b6984

Please sign in to comment.