From 636bf38824820fd9e079a661bc9a33bfd6a0b5a9 Mon Sep 17 00:00:00 2001 From: Dentomologist Date: Wed, 3 Mar 2021 14:28:06 -0800 Subject: [PATCH] IOS: Add maybe_unused attribute to variables Fixes Wunused-const-variable warning on freebsd-x64 and android --- Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp b/Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp index 2d84ca46d7..11429042cb 100644 --- a/Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp +++ b/Source/Core/Core/IOS/USB/Bluetooth/WiimoteDevice.cpp @@ -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,