mirror of https://github.com/stella-emu/stella.git
Fixes for warnings from Coverity.
This commit is contained in:
parent
0f8dc1f2bb
commit
46b07d14b5
|
@ -40,7 +40,10 @@ SoundSDL2::SoundSDL2(OSystem& osystem, AudioSettings& audioSettings)
|
|||
myIsInitializedFlag(false),
|
||||
myVolume(100),
|
||||
myVolumeFactor(0xffff),
|
||||
myDevice(0),
|
||||
myEmulationTiming(nullptr),
|
||||
myCurrentFragment(nullptr),
|
||||
myUnderrun(false),
|
||||
myAudioSettings(audioSettings)
|
||||
{
|
||||
myOSystem.logMessage("SoundSDL2::SoundSDL2 started ...", 2);
|
||||
|
|
|
@ -24,7 +24,15 @@
|
|||
using namespace std::chrono;
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
EmulationWorker::EmulationWorker() : myPendingSignal(Signal::none), myState(State::initializing)
|
||||
EmulationWorker::EmulationWorker()
|
||||
: myPendingSignal(Signal::none),
|
||||
myState(State::initializing),
|
||||
myTia(nullptr),
|
||||
myCyclesPerSecond(0),
|
||||
myMaxCycles(0),
|
||||
myMinCycles(0),
|
||||
myDispatchResult(nullptr),
|
||||
myTotalCycles(0)
|
||||
{
|
||||
std::mutex mutex;
|
||||
std::unique_lock<std::mutex> lock(mutex);
|
||||
|
|
|
@ -59,6 +59,7 @@ M6502::M6502(const Settings& settings)
|
|||
icycles(0),
|
||||
myNumberOfDistinctAccesses(0),
|
||||
myLastAddress(0),
|
||||
myLastBreakCycle(ULLONG_MAX),
|
||||
myLastPeekAddress(0),
|
||||
myLastPokeAddress(0),
|
||||
myLastPeekBaseAddress(0),
|
||||
|
|
|
@ -144,7 +144,7 @@ void TIA::reset()
|
|||
myHstate = HState::blank;
|
||||
myCollisionMask = 0;
|
||||
myLinesSinceChange = 0;
|
||||
myCollisionUpdateRequired = false;
|
||||
myCollisionUpdateRequired = myCollisionUpdateScheduled = false;
|
||||
myColorLossEnabled = myColorLossActive = false;
|
||||
myColorHBlank = 0;
|
||||
myLastCycle = 0;
|
||||
|
|
|
@ -746,6 +746,11 @@ class TIA : public Device
|
|||
*/
|
||||
bool myCollisionUpdateRequired;
|
||||
|
||||
/**
|
||||
* Force schedule a collision update
|
||||
*/
|
||||
bool myCollisionUpdateScheduled;
|
||||
|
||||
/**
|
||||
* The collision latches are represented by 15 bits in a bitfield.
|
||||
*/
|
||||
|
@ -829,9 +834,6 @@ class TIA : public Device
|
|||
bool myEnableJitter;
|
||||
uInt8 myJitterFactor;
|
||||
|
||||
// Force schedule a collision update
|
||||
bool myCollisionUpdateScheduled;
|
||||
|
||||
#ifdef DEBUGGER_SUPPORT
|
||||
// The arrays containing information about every byte of TIA
|
||||
// indicating whether and how (RW) it is used.
|
||||
|
|
Loading…
Reference in New Issue