Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
IOS: Add maybe_unused attribute to variables
Fixes Wunused-const-variable warning on freebsd-x64 and android
  • Loading branch information
Dentomologist committed Mar 7, 2021
1 parent 95c86ee commit 636bf38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp
Expand Up @@ -725,11 +725,11 @@ void WiimoteDevice::SendConfigurationRequest(u16 cid, u16 mtu, u16 flush_time_ou
SendCommandToACL(L2CAP_CONFIG_REQ, L2CAP_CONFIG_REQ, offset, buffer);
}

constexpr u8 SDP_UINT8 = 0x08;
constexpr u8 SDP_UINT16 = 0x09;
[[maybe_unused]] constexpr u8 SDP_UINT8 = 0x08;
[[maybe_unused]] constexpr u8 SDP_UINT16 = 0x09;
constexpr u8 SDP_UINT32 = 0x0A;
constexpr u8 SDP_SEQ8 = 0x35;
constexpr u8 SDP_SEQ16 = 0x36;
[[maybe_unused]] constexpr u8 SDP_SEQ16 = 0x36;

void WiimoteDevice::SDPSendServiceSearchResponse(u16 cid, u16 transaction_id,
u8* service_search_pattern,
Expand Down

0 comments on commit 636bf38

Please sign in to comment.