From 274b11e4e911768e1218d32381102432e93cccd3 Mon Sep 17 00:00:00 2001 From: Dentomologist Date: Sat, 12 Aug 2023 20:18:15 -0700 Subject: [PATCH] GCAdapter: Fix Android unused constant warning CONTROLLER_OUTPUT_INIT_PAYLOAD_SIZE is only used by the libusb implementation. --- Source/Core/InputCommon/GCAdapter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/InputCommon/GCAdapter.cpp b/Source/Core/InputCommon/GCAdapter.cpp index 2b0ce2b6c0..6334a23778 100644 --- a/Source/Core/InputCommon/GCAdapter.cpp +++ b/Source/Core/InputCommon/GCAdapter.cpp @@ -100,7 +100,9 @@ enum class ControllerType : u8 static std::array s_controller_rumble; constexpr size_t CONTROLLER_INPUT_PAYLOAD_EXPECTED_SIZE = 37; +#if GCADAPTER_USE_LIBUSB_IMPLEMENTATION constexpr size_t CONTROLLER_OUTPUT_INIT_PAYLOAD_SIZE = 1; +#endif constexpr size_t CONTROLLER_OUTPUT_RUMBLE_PAYLOAD_SIZE = 5; struct PortState