diff options
author | Andres Mejia <mcitadel@gmail.com> | 2011-07-24 15:40:20 -0400 |
---|---|---|
committer | Andres Mejia <mcitadel@gmail.com> | 2011-07-24 15:40:20 -0400 |
commit | 96250537e85e0d3dad5a7df463b2b7a827f73226 (patch) | |
tree | 25b1c6f473d7b96327b927862cd0868545c85938 /tools/EventClients | |
parent | 1f28471d82790373142af0486837bf4099c1d234 (diff) |
Fix build failure with GCC-4.6.
Erro fixed was error: taking address of temporary [-fpermissive].
Diffstat (limited to 'tools/EventClients')
-rw-r--r-- | tools/EventClients/Clients/WiiRemote/CWIID_WiiRemote.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/EventClients/Clients/WiiRemote/CWIID_WiiRemote.cpp b/tools/EventClients/Clients/WiiRemote/CWIID_WiiRemote.cpp index c609b9cfb0..1a9e830f47 100644 --- a/tools/EventClients/Clients/WiiRemote/CWIID_WiiRemote.cpp +++ b/tools/EventClients/Clients/WiiRemote/CWIID_WiiRemote.cpp @@ -152,10 +152,11 @@ CWiiRemote::~CWiiRemote() /* Basicly this just sets up standard control bits */ void CWiiRemote::SetBluetoothAddress(const char *btaddr) { + static const bdaddr_t b = {{0, 0, 0, 0, 0, 0}}; /* BDADDR_ANY */ if (btaddr != NULL) str2ba(btaddr, &m_btaddr); else - bacpy(&m_btaddr, &(*BDADDR_ANY)); + bacpy(&m_btaddr, &b); } void CWiiRemote::SetSensativity(float DeadX, float DeadY, int NumSamples) |