mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-15 21:12:47 +00:00
Merge pull request #5901 from lioncash/input-warn
udp: Silence warnings on Clang 12
This commit is contained in:
commit
70db238f80
|
@ -144,6 +144,10 @@ Client::~Client() {
|
||||||
Reset();
|
Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Client::ClientData::ClientData() = default;
|
||||||
|
|
||||||
|
Client::ClientData::~ClientData() = default;
|
||||||
|
|
||||||
std::vector<Common::ParamPackage> Client::GetInputDevices() const {
|
std::vector<Common::ParamPackage> Client::GetInputDevices() const {
|
||||||
std::vector<Common::ParamPackage> devices;
|
std::vector<Common::ParamPackage> devices;
|
||||||
for (std::size_t client = 0; client < clients.size(); client++) {
|
for (std::size_t client = 0; client < clients.size(); client++) {
|
||||||
|
|
|
@ -98,6 +98,9 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct ClientData {
|
struct ClientData {
|
||||||
|
ClientData();
|
||||||
|
~ClientData();
|
||||||
|
|
||||||
std::string host{"127.0.0.1"};
|
std::string host{"127.0.0.1"};
|
||||||
u16 port{26760};
|
u16 port{26760};
|
||||||
std::size_t pad_index{};
|
std::size_t pad_index{};
|
||||||
|
|
|
@ -84,8 +84,8 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const std::string ip;
|
const std::string ip;
|
||||||
const u16 port;
|
[[maybe_unused]] const u16 port;
|
||||||
const u16 pad;
|
[[maybe_unused]] const u16 pad;
|
||||||
CemuhookUDP::Client* client;
|
CemuhookUDP::Client* client;
|
||||||
mutable std::mutex mutex;
|
mutable std::mutex mutex;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue