From b6ff15c13051cdcb9a60f515e206f4255b853d38 Mon Sep 17 00:00:00 2001 From: Jun Su Date: Mon, 23 Mar 2020 15:59:19 +0800 Subject: Cleanup warnings of -Wmissing-declarations Add static to the functions which is not intentionally export to big scope. --- Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/InputCommon/ControllerInterface/evdev') diff --git a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp index 029ea22d3c..c825da6b7b 100644 --- a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp +++ b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp @@ -204,7 +204,7 @@ static int s_wakeup_eventfd; // sysfs is not stable, so this is probably the easiest way to get a name for a node. static std::map> s_devnode_objects; -std::shared_ptr FindDeviceWithUniqueID(const char* unique_id) +static std::shared_ptr FindDeviceWithUniqueID(const char* unique_id) { if (!unique_id) return nullptr; @@ -223,7 +223,7 @@ std::shared_ptr FindDeviceWithUniqueID(const char* unique_id) return nullptr; } -void AddDeviceNode(const char* devnode) +static void AddDeviceNode(const char* devnode) { // Unfortunately udev gives us no way to filter out the non event device interfaces. // So we open it and see if it works with evdev ioctls or not. -- cgit v1.2.3