Merge pull request #4314 from lioncash/input-warn

gcadapter: Tidy up compiler warnings
This commit is contained in:
bunnei 2020-07-14 10:20:12 -04:00 committed by GitHub
commit 393cdb15f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 11 deletions

View file

@ -107,7 +107,7 @@ public:
const std::array<GCState, 4>& GetPadState() const;
private:
GCPadStatus GetPadStatus(int port, const std::array<u8, 37>& adapter_payload);
GCPadStatus GetPadStatus(std::size_t port, const std::array<u8, 37>& adapter_payload);
void PadToState(const GCPadStatus& pad, GCState& state);
@ -120,10 +120,10 @@ private:
void StopScanThread();
/// Returns true if there is a device connected to port
bool DeviceConnected(int port);
bool DeviceConnected(std::size_t port);
/// Resets status of device connected to port
void ResetDeviceType(int port);
void ResetDeviceType(std::size_t port);
/// Returns true if we successfully gain access to GC Adapter
bool CheckDeviceAccess(libusb_device* device);