summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2020-02-23 09:34:31 -0600
committerJordan Woyak <jordan.woyak@gmail.com>2020-02-24 16:25:06 -0600
commit1a3b4d91bf8446909822e1527cb2aaa6c60cb1b8 (patch)
tree4df8b596403d4de39477b95e0f8dda2ab1498bba /Source/Core/InputCommon
parent25d5f0d9efd2af58b5389a358794ff10359e0164 (diff)
InputCommon: Mark GetStateLock with [[nodiscard]] and fix discarding calls.
Diffstat (limited to 'Source/Core/InputCommon')
-rw-r--r--Source/Core/InputCommon/ControllerEmu/ControllerEmu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.h b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.h
index 3f497b1f88..3301672ccf 100644
--- a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.h
+++ b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.h
@@ -153,7 +153,7 @@ public:
// references and GetState(), by extension. This prevents a race condition
// which happens while handling a hotplug event because a control reference's State()
// could be called before we have finished updating the reference.
- static std::unique_lock<std::recursive_mutex> GetStateLock();
+ [[nodiscard]] static std::unique_lock<std::recursive_mutex> GetStateLock();
std::vector<std::unique_ptr<ControlGroup>> groups;