Skip to content

Commit e1b6984

Browse files
committed
Fixed compiling warnining about clearing a non-trivial type GrandOrgue#2001
1 parent 6eeb863 commit e1b6984

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/grandorgue/sound/GOSoundSamplerPool.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright 2006 Milan Digital Audio LLC
3-
* Copyright 2009-2023 GrandOrgue contributors (see AUTHORS)
3+
* Copyright 2009-2024 GrandOrgue contributors (see AUTHORS)
44
* License GPL-2.0 or later
55
* (https://www.gnu.org/licenses/old-licenses/gpl-2.0.html).
66
*/
@@ -53,7 +53,7 @@ GOSoundSampler *GOSoundSamplerPool::GetSampler() {
5353
m_SamplerCount.fetch_add(1);
5454
}
5555
if (sampler)
56-
memset(sampler, 0, sizeof(GOSoundSampler));
56+
memset((void *)sampler, 0, sizeof(GOSoundSampler));
5757
return sampler;
5858
}
5959

0 commit comments

Comments
 (0)