From 997cfa49fcee245d55c87aa8a61d70ceccab6b52 Mon Sep 17 00:00:00 2001 From: Jun Su Date: Mon, 23 Mar 2020 14:26:36 +0800 Subject: InputCommon: cleanup warnings of -Wclass-memaccess Initialize m_state with the default constructor. --- Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h') 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; -- cgit v1.2.3