mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Change the cmake check_lib routine to use REQUIRED/OPTIONAL instead of TRUE/FALSE.
Add a check to see if -Wno-unused-result is supported by the compiler. Fix some compiler warnings in the wiiuse code. Fix a bug in the wxGTK panic alert code. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6399 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -183,7 +183,8 @@ static int wiiuse_connect_single(struct wiimote_t* wm, char* address)
|
||||
str2ba(address, &addr.l2_bdaddr);
|
||||
else
|
||||
{
|
||||
if (bacmp(bdaddr, BDADDR_ANY) == 0)
|
||||
bdaddr_t bdaddr_any = (bdaddr_t){{0, 0, 0, 0, 0, 0}};
|
||||
if (bacmp(bdaddr, &bdaddr_any) == 0)
|
||||
return 0;
|
||||
// use address of device discovered
|
||||
addr.l2_bdaddr = *bdaddr;
|
||||
|
@ -123,7 +123,7 @@ struct wiimote_t** wiiuse_init(int wiimotes) {
|
||||
wm[i]->unid = i+1;
|
||||
|
||||
#if defined __linux__ && HAVE_BLUEZ
|
||||
wm[i]->bdaddr = *BDADDR_ANY;
|
||||
wm[i]->bdaddr = (bdaddr_t){{0, 0, 0, 0, 0, 0}};
|
||||
wm[i]->out_sock = -1;
|
||||
wm[i]->in_sock = -1;
|
||||
#elif defined(_WIN32)
|
||||
|
Reference in New Issue
Block a user