From 1ac4f8e3620ba22c1a571810723aa0093f3de23c Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Sun, 8 Dec 2019 21:02:29 +0100 Subject: [PATCH] Comments. --- src/common/RewindManager.cxx | 2 ++ src/emucore/MT24LC256.cxx | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/common/RewindManager.cxx b/src/common/RewindManager.cxx index 5fbde4d29..cd5638c54 100644 --- a/src/common/RewindManager.cxx +++ b/src/common/RewindManager.cxx @@ -40,6 +40,8 @@ void RewindManager::setup() myLastTimeMachineAdd = false; 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; // TODO - Add proper bounds checking (define constexpr variables for this) diff --git a/src/emucore/MT24LC256.cxx b/src/emucore/MT24LC256.cxx index 5f2ce867a..ce1ca257f 100644 --- a/src/emucore/MT24LC256.cxx +++ b/src/emucore/MT24LC256.cxx @@ -156,6 +156,7 @@ void MT24LC256::systemReset() // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void MT24LC256::eraseAll() { + // Work around a bug in XCode 11.2 with -O0 and -O1 const uInt8 initialValue = INITIAL_VALUE; myData.fill(initialValue); @@ -165,6 +166,7 @@ void MT24LC256::eraseAll() // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void MT24LC256::eraseCurrent() { + // Work around a bug in XCode 11.2 with -O0 and -O1 const uInt8 initialValue = INITIAL_VALUE; for(uInt32 page = 0; page < PAGE_NUM; ++page) @@ -189,6 +191,7 @@ bool MT24LC256::isPageUsed(uInt32 page) const // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void MT24LC256::jpee_init() { + // Work around a bug in XCode 11.2 with -O0 and -O1 const uInt8 initialValue = INITIAL_VALUE; jpee_sdat = 1;