diff --git a/src/engine/platform/sound/ymfm/ymfm_opn.h b/src/engine/platform/sound/ymfm/ymfm_opn.h index f4136c731..8d9b42de0 100644 --- a/src/engine/platform/sound/ymfm/ymfm_opn.h +++ b/src/engine/platform/sound/ymfm/ymfm_opn.h @@ -763,7 +763,7 @@ public: protected: // simulate the DAC discontinuity - constexpr int32_t dac_discontinuity(int32_t value) const { return (value < 0) ? (value - 2) : (value + 3); } + int32_t dac_discontinuity(int32_t value) const { return (value < 0) ? (value - 2) : (value + 3); } // internal state uint16_t m_address; // address register diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 848787877..49b8895c3 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -3406,7 +3406,9 @@ String getHomeDir() { ret=tempDir; ret+='\\'; #else - getcwd(tempDir,4095); + char* unused=getcwd(tempDir,4095); + char* unused1=unused; // dang it compiler + unused=unused1; ret=tempDir; ret+='/'; #endif