From fd39454ad3db02cf702527442c97b364c8b6b991 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 28 Oct 2014 08:36:00 -0400 Subject: [PATCH] Make some OSX-only functions static Gets rid of function prototype warnings. --- Source/Core/Core/HW/BBA-TAP/TAP_Apple.cpp | 2 +- Source/Core/Core/x64MemTools.cpp | 4 ++-- Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/HW/BBA-TAP/TAP_Apple.cpp b/Source/Core/Core/HW/BBA-TAP/TAP_Apple.cpp index cb14f23e94..ab24dbb6a9 100644 --- a/Source/Core/Core/HW/BBA-TAP/TAP_Apple.cpp +++ b/Source/Core/Core/HW/BBA-TAP/TAP_Apple.cpp @@ -61,7 +61,7 @@ bool CEXIETHERNET::SendFrame(u8* frame, u32 size) } } -void ReadThreadHandler(CEXIETHERNET* self) +static void ReadThreadHandler(CEXIETHERNET* self) { while (true) { diff --git a/Source/Core/Core/x64MemTools.cpp b/Source/Core/Core/x64MemTools.cpp index facc477d07..db7a307fc3 100644 --- a/Source/Core/Core/x64MemTools.cpp +++ b/Source/Core/Core/x64MemTools.cpp @@ -91,7 +91,7 @@ void UninstallExceptionHandler() {} #elif defined(__APPLE__) && !defined(USE_SIGACTION_ON_APPLE) -void CheckKR(const char* name, kern_return_t kr) +static void CheckKR(const char* name, kern_return_t kr) { if (kr) { @@ -99,7 +99,7 @@ void CheckKR(const char* name, kern_return_t kr) } } -void ExceptionThread(mach_port_t port) +static void ExceptionThread(mach_port_t port) { Common::SetCurrentThreadName("Mach exception thread"); #pragma pack(4) diff --git a/Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm b/Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm index 9d73106c6e..9d6b974db7 100644 --- a/Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm +++ b/Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm @@ -108,7 +108,7 @@ void DeviceElementDebugPrint(const void *value, void *context) } } -void DeviceDebugPrint(IOHIDDeviceRef device) +static void DeviceDebugPrint(IOHIDDeviceRef device) { #if 0 #define shortlog(x) NSLog(@"%s: %@", \