mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-20 09:19:48 +00: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:
parent
02edf66b49
commit
17662d4ac6
5 changed files with 19 additions and 10 deletions
|
@ -658,7 +658,7 @@ void CFrame::OnHostMessage(wxCommandEvent& event)
|
|||
#ifdef __WXGTK__
|
||||
case IDM_PANIC:
|
||||
bPanicResult = (wxYES == wxMessageBox(event.GetString(),
|
||||
wxT("Warning"), event.GetInt() ? wxYES_NO : wxOK), this);
|
||||
wxT("Warning"), event.GetInt() ? wxYES_NO : wxOK, this));
|
||||
panic_event.Set();
|
||||
break;
|
||||
#endif
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue