mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 05:45:38 +00:00
fixed some -Wunused-*
compiler warnings
This commit is contained in:
parent
391e1b9622
commit
5332d8f945
|
@ -58,8 +58,10 @@ static Debugger::CMusashi68KDebug *s_Debug = NULL;
|
|||
// IRQ callback
|
||||
static int (*IRQAck)(int nIRQ) = NULL;
|
||||
|
||||
#ifdef SUPERMODEL_DEBUGGER
|
||||
// Cycles remaining in timeslice
|
||||
static int s_lastCycles;
|
||||
#endif
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
if (MSR & MSR_EE)
|
||||
|
|
|
@ -130,7 +130,7 @@ void main()
|
|||
|
||||
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_locFogAttenuation = glGetUniformLocation(m_shaderProgram, "fogAttenuation");
|
||||
|
|
|
@ -351,6 +351,7 @@ void CSoundBoard::WriteMIDIPort(UINT8 data)
|
|||
DSB->SendCommand(data);
|
||||
}
|
||||
|
||||
#ifdef SUPERMODEL_LOG_AUDIO
|
||||
static INT16 ClampINT16(float x)
|
||||
{
|
||||
INT32 xi = (INT32)x;
|
||||
|
@ -362,6 +363,7 @@ static INT16 ClampINT16(float x)
|
|||
}
|
||||
return (INT16)xi;
|
||||
}
|
||||
#endif
|
||||
|
||||
bool CSoundBoard::RunFrame(void)
|
||||
{
|
||||
|
@ -569,19 +571,6 @@ CSoundBoard::CSoundBoard(const Util::Config::Node &config)
|
|||
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)
|
||||
{
|
||||
#ifdef SUPERMODEL_LOG_AUDIO
|
||||
|
|
|
@ -124,7 +124,6 @@ static const double srate=44100;
|
|||
static CMutex *MIDILock; // for safe access to the MIDI FIFOs
|
||||
static int (*Run68kCB)(int cycles);
|
||||
static void (*Int68kCB)(int irq);
|
||||
static void (*RetIntCB)();
|
||||
static DWORD IrqTimA;
|
||||
static DWORD IrqTimBC;
|
||||
static DWORD IrqMidi;
|
||||
|
|
Loading…
Reference in a new issue