diff options
| author | 2021-02-09 20:19:56 -0500 | |
|---|---|---|
| committer | 2021-02-09 20:19:56 -0500 | |
| commit | 70db238f80c523ac3f807de18e822698cc39a135 (patch) | |
| tree | 8265e28e6327fa7021aabd28469b5bcdcd1e8bd5 | |
| parent | Merge pull request #5900 from lioncash/unused-func (diff) | |
| parent | udp: Silence unused member variable warnings (diff) | |
| download | yuzu-70db238f80c523ac3f807de18e822698cc39a135.tar.gz yuzu-70db238f80c523ac3f807de18e822698cc39a135.tar.xz yuzu-70db238f80c523ac3f807de18e822698cc39a135.zip | |
Merge pull request #5901 from lioncash/input-warn
udp: Silence warnings on Clang 12
Diffstat (limited to '')
| -rw-r--r-- | src/input_common/udp/client.cpp | 4 | ||||
| -rw-r--r-- | src/input_common/udp/client.h | 3 | ||||
| -rw-r--r-- | src/input_common/udp/udp.cpp | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/src/input_common/udp/client.cpp b/src/input_common/udp/client.cpp index e7e50d789..c4afa4174 100644 --- a/src/input_common/udp/client.cpp +++ b/src/input_common/udp/client.cpp | |||
| @@ -144,6 +144,10 @@ Client::~Client() { | |||
| 144 | Reset(); | 144 | Reset(); |
| 145 | } | 145 | } |
| 146 | 146 | ||
| 147 | Client::ClientData::ClientData() = default; | ||
| 148 | |||
| 149 | Client::ClientData::~ClientData() = default; | ||
| 150 | |||
| 147 | std::vector<Common::ParamPackage> Client::GetInputDevices() const { | 151 | std::vector<Common::ParamPackage> Client::GetInputDevices() const { |
| 148 | std::vector<Common::ParamPackage> devices; | 152 | std::vector<Common::ParamPackage> devices; |
| 149 | for (std::size_t client = 0; client < clients.size(); client++) { | 153 | for (std::size_t client = 0; client < clients.size(); client++) { |
diff --git a/src/input_common/udp/client.h b/src/input_common/udp/client.h index 822f9c550..a523f6124 100644 --- a/src/input_common/udp/client.h +++ b/src/input_common/udp/client.h | |||
| @@ -98,6 +98,9 @@ public: | |||
| 98 | 98 | ||
| 99 | private: | 99 | private: |
| 100 | struct ClientData { | 100 | struct ClientData { |
| 101 | ClientData(); | ||
| 102 | ~ClientData(); | ||
| 103 | |||
| 101 | std::string host{"127.0.0.1"}; | 104 | std::string host{"127.0.0.1"}; |
| 102 | u16 port{26760}; | 105 | u16 port{26760}; |
| 103 | std::size_t pad_index{}; | 106 | std::size_t pad_index{}; |
diff --git a/src/input_common/udp/udp.cpp b/src/input_common/udp/udp.cpp index b630281a0..9829da6f0 100644 --- a/src/input_common/udp/udp.cpp +++ b/src/input_common/udp/udp.cpp | |||
| @@ -84,8 +84,8 @@ public: | |||
| 84 | 84 | ||
| 85 | private: | 85 | private: |
| 86 | const std::string ip; | 86 | const std::string ip; |
| 87 | const u16 port; | 87 | [[maybe_unused]] const u16 port; |
| 88 | const u16 pad; | 88 | [[maybe_unused]] const u16 pad; |
| 89 | CemuhookUDP::Client* client; | 89 | CemuhookUDP::Client* client; |
| 90 | mutable std::mutex mutex; | 90 | mutable std::mutex mutex; |
| 91 | }; | 91 | }; |