Add Common::AtomicDecrement for gcc to match win32.

Use the debug option for conf.CheckWXConfig on OS X as on Unix.

Take care of a few compiler warnings.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6084 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang 2010-08-10 08:29:15 +00:00
parent 3b7a6ce336
commit db072e1986
6 changed files with 10 additions and 7 deletions

View File

@ -45,6 +45,10 @@ inline void AtomicAnd(volatile u32& target, u32 value) {
__sync_and_and_fetch(&target, value); __sync_and_and_fetch(&target, value);
} }
inline void AtomicDecrement(volatile u32& target) {
__sync_add_and_fetch(&target, -1);
}
inline void AtomicIncrement(volatile u32& target) { inline void AtomicIncrement(volatile u32& target) {
__sync_add_and_fetch(&target, 1); __sync_add_and_fetch(&target, 1);
} }

View File

@ -231,6 +231,7 @@ void Jit64::cmpXX(UGeckoInstruction inst)
comparand = Imm32((u32)(s32)(s16)inst.UIMM); comparand = Imm32((u32)(s32)(s16)inst.UIMM);
signedCompare = true; signedCompare = true;
} else { } else {
signedCompare = false; // silence compiler warning
PanicAlert("cmpXX"); PanicAlert("cmpXX");
} }
} }

View File

@ -510,8 +510,6 @@ void Wiimote::GetIRData(u8* const data)
void Wiimote::GetExtData(u8* const data) void Wiimote::GetExtData(u8* const data)
{ {
const bool has_focus = HAS_FOCUS;
m_extension->GetState(data, HAS_FOCUS); m_extension->GetState(data, HAS_FOCUS);
// i dont think anything accesses the extension data like this, but ill support it. Indeed, commercial games don't do this. // i dont think anything accesses the extension data like this, but ill support it. Indeed, commercial games don't do this.

View File

@ -47,10 +47,10 @@ THREAD_RETURN WiimoteThreadFunc(void* arg);
Wiimote *g_wiimotes[4]; Wiimote *g_wiimotes[4];
Wiimote::Wiimote(wiimote_t* const wm, const unsigned int index) Wiimote::Wiimote(wiimote_t* const wm, const unsigned int index)
: m_wiimote(wm) : m_last_data_report(NULL)
, m_index(index)
, m_channel(0) , m_channel(0)
, m_last_data_report(NULL) , m_wiimote(wm)
, m_index(index)
{ {
// disable reporting // disable reporting
DisableDataReporting(); DisableDataReporting();