fixed some -Wunused-* compiler warnings

This commit is contained in:
firewave 2023-12-02 19:08:13 +01:00 committed by Bart Trzynadlowski
parent 391e1b9622
commit 5332d8f945
5 changed files with 5 additions and 22 deletions

View file

@ -58,8 +58,10 @@ static Debugger::CMusashi68KDebug *s_Debug = NULL;
// IRQ callback // IRQ callback
static int (*IRQAck)(int nIRQ) = NULL; static int (*IRQAck)(int nIRQ) = NULL;
#ifdef SUPERMODEL_DEBUGGER
// Cycles remaining in timeslice // Cycles remaining in timeslice
static int s_lastCycles; static int s_lastCycles;
#endif
/****************************************************************************** /******************************************************************************

View file

@ -206,13 +206,6 @@ void ppc603_exception(int exception)
} }
} }
static void ppc603_set_smi_line(int state)
{
if( state ) {
ppc.interrupt_pending |= 0x4;
}
}
static void ppc603_check_interrupts(void) static void ppc603_check_interrupts(void)
{ {
if (MSR & MSR_EE) if (MSR & MSR_EE)

View file

@ -130,7 +130,7 @@ void main()
void R3DScrollFog::AllocResources() void R3DScrollFog::AllocResources()
{ {
bool success = LoadShaderProgram(&m_shaderProgram, &m_vertexShader, &m_fragmentShader, m_config["VertexShaderFog"].ValueAs<std::string>(), m_config["FragmentShaderFog"].ValueAs<std::string>(), vertexShaderFog, fragmentShaderFog); /*bool success = */LoadShaderProgram(&m_shaderProgram, &m_vertexShader, &m_fragmentShader, m_config["VertexShaderFog"].ValueAs<std::string>(), m_config["FragmentShaderFog"].ValueAs<std::string>(), vertexShaderFog, fragmentShaderFog);
m_locFogColour = glGetUniformLocation(m_shaderProgram, "fogColour"); m_locFogColour = glGetUniformLocation(m_shaderProgram, "fogColour");
m_locFogAttenuation = glGetUniformLocation(m_shaderProgram, "fogAttenuation"); m_locFogAttenuation = glGetUniformLocation(m_shaderProgram, "fogAttenuation");

View file

@ -351,6 +351,7 @@ void CSoundBoard::WriteMIDIPort(UINT8 data)
DSB->SendCommand(data); DSB->SendCommand(data);
} }
#ifdef SUPERMODEL_LOG_AUDIO
static INT16 ClampINT16(float x) static INT16 ClampINT16(float x)
{ {
INT32 xi = (INT32)x; INT32 xi = (INT32)x;
@ -362,6 +363,7 @@ static INT16 ClampINT16(float x)
} }
return (INT16)xi; return (INT16)xi;
} }
#endif
bool CSoundBoard::RunFrame(void) bool CSoundBoard::RunFrame(void)
{ {
@ -569,19 +571,6 @@ CSoundBoard::CSoundBoard(const Util::Config::Node &config)
DebugLog("Built Sound Board\n"); DebugLog("Built Sound Board\n");
} }
static void Reverse16(UINT8 *buf, unsigned size)
{
unsigned i;
UINT8 tmp;
for (i = 0; i < size; i += 2)
{
tmp = buf[i+0];
buf[i+0] = buf[i+1];
buf[i+1] = tmp;
}
}
CSoundBoard::~CSoundBoard(void) CSoundBoard::~CSoundBoard(void)
{ {
#ifdef SUPERMODEL_LOG_AUDIO #ifdef SUPERMODEL_LOG_AUDIO

View file

@ -124,7 +124,6 @@ static const double srate=44100;
static CMutex *MIDILock; // for safe access to the MIDI FIFOs static CMutex *MIDILock; // for safe access to the MIDI FIFOs
static int (*Run68kCB)(int cycles); static int (*Run68kCB)(int cycles);
static void (*Int68kCB)(int irq); static void (*Int68kCB)(int irq);
static void (*RetIntCB)();
static DWORD IrqTimA; static DWORD IrqTimA;
static DWORD IrqTimBC; static DWORD IrqTimBC;
static DWORD IrqMidi; static DWORD IrqMidi;