mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-07 19:36:21 +00:00
AUDIO: Fix GCC Compiler Warning in FM-TOWNS PC-98 Soft Synth
This is another warning of the use of memset to clear a non-trivial structure / class. This can be removed since the structure is cleared by the constructor which will be called by the "new" so clearing this again is redundant.
This commit is contained in:
parent
e35f016016
commit
3de51cefd7
@ -987,7 +987,6 @@ bool TownsPC98_FmSynth::init() {
|
||||
|
||||
_chanInternal = new ChanInternal[_numChan];
|
||||
for (int i = 0; i < _numChan; i++) {
|
||||
memset(&_chanInternal[i], 0, sizeof(ChanInternal));
|
||||
for (int j = 0; j < 4; ++j)
|
||||
_chanInternal[i].opr[j] = new TownsPC98_FmSynthOperator(_timerbase, _rtt, _oprRates, _oprRateshift, _oprAttackDecay, _oprFrq, _oprSinTbl, _oprLevelOut, _oprDetune);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user