Comments.

This commit is contained in:
Christian Speckner 2019-12-08 21:02:29 +01:00
parent 15154eafaf
commit 1ac4f8e362
2 changed files with 5 additions and 0 deletions

View File

@ -40,6 +40,8 @@ void RewindManager::setup()
myLastTimeMachineAdd = false; myLastTimeMachineAdd = false;
const string& prefix = myOSystem.settings().getBool("dev.settings") ? "dev." : "plr."; const string& prefix = myOSystem.settings().getBool("dev.settings") ? "dev." : "plr.";
// Work around a bug in XCode 11.2 with -O0 and -O1
const uInt32 maxBufSize = MAX_BUF_SIZE; const uInt32 maxBufSize = MAX_BUF_SIZE;
// TODO - Add proper bounds checking (define constexpr variables for this) // TODO - Add proper bounds checking (define constexpr variables for this)

View File

@ -156,6 +156,7 @@ void MT24LC256::systemReset()
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void MT24LC256::eraseAll() void MT24LC256::eraseAll()
{ {
// Work around a bug in XCode 11.2 with -O0 and -O1
const uInt8 initialValue = INITIAL_VALUE; const uInt8 initialValue = INITIAL_VALUE;
myData.fill(initialValue); myData.fill(initialValue);
@ -165,6 +166,7 @@ void MT24LC256::eraseAll()
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void MT24LC256::eraseCurrent() void MT24LC256::eraseCurrent()
{ {
// Work around a bug in XCode 11.2 with -O0 and -O1
const uInt8 initialValue = INITIAL_VALUE; const uInt8 initialValue = INITIAL_VALUE;
for(uInt32 page = 0; page < PAGE_NUM; ++page) for(uInt32 page = 0; page < PAGE_NUM; ++page)
@ -189,6 +191,7 @@ bool MT24LC256::isPageUsed(uInt32 page) const
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void MT24LC256::jpee_init() void MT24LC256::jpee_init()
{ {
// Work around a bug in XCode 11.2 with -O0 and -O1
const uInt8 initialValue = INITIAL_VALUE; const uInt8 initialValue = INITIAL_VALUE;
jpee_sdat = 1; jpee_sdat = 1;