summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h
diff options
context:
space:
mode:
authorJun Su <howard0su@gmail.com>2020-03-23 14:26:36 +0800
committerJun Su <howard0su@gmail.com>2020-03-23 14:26:36 +0800
commit997cfa49fcee245d55c87aa8a61d70ceccab6b52 (patch)
tree7d9ff40459e38e1e1b8e49ad5b0567d663aa975d /Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h
parent62707986b7c5c70f34767e70ddf06baf0b14a7c7 (diff)
InputCommon: cleanup warnings of -Wclass-memaccess
Initialize m_state with the default constructor.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h b/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h
index f8e1e734c9..af452725fc 100644
--- a/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h
+++ b/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h
@@ -105,7 +105,7 @@ public:
private:
Window m_window;
Display* m_display;
- State m_state;
+ State m_state{};
int xi_opcode;
const int pointer_deviceid, keyboard_deviceid;
std::string name;