diff options
author | D G Turner | 2019-05-07 22:41:42 +0100 |
---|---|---|
committer | D G Turner | 2019-05-07 22:41:42 +0100 |
commit | 3de51cefd76ff7dc649c257be6eae71402f50033 (patch) | |
tree | 22a801ad0333dfb713e1f36867b5ec0a224bbd4f /audio/softsynth | |
parent | e35f016016f819c25aea8230ec3364a782371b6d (diff) | |
download | scummvm-rg350-3de51cefd76ff7dc649c257be6eae71402f50033.tar.gz scummvm-rg350-3de51cefd76ff7dc649c257be6eae71402f50033.tar.bz2 scummvm-rg350-3de51cefd76ff7dc649c257be6eae71402f50033.zip |
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.
Diffstat (limited to 'audio/softsynth')
-rw-r--r-- | audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp b/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp index 2cbaad3471..03b4502cda 100644 --- a/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp +++ b/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp @@ -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); } |