Misc warning fixes.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3668 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
magumagu9 2009-07-03 23:14:06 +00:00
parent fc604ba2d1
commit 3034a9fcfc
6 changed files with 5 additions and 7 deletions

View File

@ -125,7 +125,7 @@ void OpenALStream::SoundLoop()
{ {
soundCriticalSection.Enter(); soundCriticalSection.Enter();
int numBytesToRender = 32768; //ya, this is a hack, we need real data count int numBytesToRender = 32768; //ya, this is a hack, we need real data count
int numBytesRender = m_mixer->Mix(realtimeBuffer, numBytesToRender >> 2); /*int numBytesRender =*/ m_mixer->Mix(realtimeBuffer, numBytesToRender >> 2);
soundCriticalSection.Leave(); soundCriticalSection.Leave();
//if (numBytesRender) //here need debug //if (numBytesRender) //here need debug

View File

@ -85,7 +85,6 @@ bool CEXIETHERNET::CheckRecieved()
{ {
if(!isActivated()) if(!isActivated())
return false; return false;
int i;
int maxfd; int maxfd;
int retval; int retval;
struct timeval tv; struct timeval tv;
@ -151,7 +150,7 @@ THREAD_RETURN CpuThread(void *pArg)
//strncat(mRecvBuffer.p(), B, BytesRead); //strncat(mRecvBuffer.p(), B, BytesRead);
memcpy(self->mRecvBuffer, B, self->mRecvBufferLength); memcpy(self->mRecvBuffer, B, self->mRecvBufferLength);
} }
else if(self->mRecvBufferLength == -1) else if(self->mRecvBufferLength == -1U)
{ {
continue; continue;
} }

View File

@ -25,7 +25,6 @@
namespace namespace
{ {
static bool g_Branch;
static Common::Event m_StepEvent; static Common::Event m_StepEvent;
static Common::Event *m_SyncEvent; static Common::Event *m_SyncEvent;
} }

View File

@ -126,12 +126,12 @@ bool
CSIDevice_GCController::GetData(u32& _Hi, u32& _Low) CSIDevice_GCController::GetData(u32& _Hi, u32& _Low)
{ {
SPADStatus PadStatus; SPADStatus PadStatus;
u32 netValues[2] = {0};
memset(&PadStatus, 0, sizeof(PadStatus)); memset(&PadStatus, 0, sizeof(PadStatus));
Common::PluginPAD* pad = CPluginManager::GetInstance().GetPad(ISIDevice::m_iDeviceNumber); Common::PluginPAD* pad = CPluginManager::GetInstance().GetPad(ISIDevice::m_iDeviceNumber);
pad->PAD_GetStatus(ISIDevice::m_iDeviceNumber, &PadStatus); pad->PAD_GetStatus(ISIDevice::m_iDeviceNumber, &PadStatus);
#if defined(HAVE_SFML) && HAVE_SFML #if defined(HAVE_SFML) && HAVE_SFML
u32 netValues[2] = {0};
int NetPlay = GetNetInput(ISIDevice::m_iDeviceNumber, PadStatus, netValues); int NetPlay = GetNetInput(ISIDevice::m_iDeviceNumber, PadStatus, netValues);
if (NetPlay != 2) if (NetPlay != 2)

View File

@ -16,7 +16,7 @@ short ADPDecodeSample(int bits, int q, int *hist1p, int *hist2p)
const int hist1 = *hist1p; const int hist1 = *hist1p;
const int hist2 = *hist2p; const int hist2 = *hist2p;
int hist; int hist = 0;
switch (q >> 4) switch (q >> 4)
{ {
case 0: case 0:

View File

@ -202,7 +202,7 @@ public:
} }
// Write return value to the IPC call, 0 means success // Write return value to the IPC call, 0 means success
Memory::Write_U32(0, _CommandAddress + 0x4); Memory::Write_U32(ReturnValue, _CommandAddress + 0x4);
// Generate true or false reply for the main UpdateInterrupts() function // Generate true or false reply for the main UpdateInterrupts() function
return false; return false;