From ad51311dbf3d42c19c3e030c1759eb30370bb29e Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sat, 24 Jun 2017 02:33:55 +0100 Subject: [PATCH] Fix GCC warnings --- Source/Core/Core/HW/WiimoteReal/IOLinux.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/HW/WiimoteReal/IOLinux.cpp b/Source/Core/Core/HW/WiimoteReal/IOLinux.cpp index 579b442d6d..461f61709d 100644 --- a/Source/Core/Core/HW/WiimoteReal/IOLinux.cpp +++ b/Source/Core/Core/HW/WiimoteReal/IOLinux.cpp @@ -140,7 +140,7 @@ bool WiimoteLinux::ConnectInternal() // Output channel addr.l2_psm = htobs(WC_OUTPUT); - if (m_cmd_sock = socket(AF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP)) + if ((m_cmd_sock = socket(AF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP))) { int retry = 0; while (connect(m_cmd_sock, (sockaddr*)&addr, sizeof(addr)) < 0) @@ -165,7 +165,7 @@ bool WiimoteLinux::ConnectInternal() // Input channel addr.l2_psm = htobs(WC_INPUT); - if (m_int_sock = socket(AF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP)) + if ((m_int_sock = socket(AF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP))) { int retry = 0; while (connect(m_int_sock, (sockaddr*)&addr, sizeof(addr)) < 0)