Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputCommon: cleanup warnings of -Wclass-memaccess #8693

Merged
merged 1 commit into from
Mar 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
InputCommon: cleanup warnings of -Wclass-memaccess
Initialize m_state with the default constructor.
  • Loading branch information
howard0su committed Mar 23, 2020
commit 997cfa49fcee245d55c87aa8a61d70ceccab6b52
2 changes: 0 additions & 2 deletions Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ void KeyboardMouse::SelectEventsForDevice(Window window, XIEventMask* mask, int
KeyboardMouse::KeyboardMouse(Window window, int opcode, int pointer, int keyboard)
: m_window(window), xi_opcode(opcode), pointer_deviceid(pointer), keyboard_deviceid(keyboard)
{
memset(&m_state, 0, sizeof(m_state));

// The cool thing about each KeyboardMouse object having its own Display
// is that each one gets its own separate copy of the X11 event stream,
// which it can individually filter to get just the events it's interested
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class KeyboardMouse : public Core::Device
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;
Expand Down