Skip to content

Commit

Permalink
Fixed compiling warnining about clearing a non-trivial type #2001 (#2069
Browse files Browse the repository at this point in the history
)
  • Loading branch information
oleg68 authored Dec 14, 2024
1 parent 4d280e5 commit cefd5fd
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 cefd5fd

Please sign in to comment.