From 59cd681dc3c3e4f171fe398ee710deee6bc6ee5a Mon Sep 17 00:00:00 2001 From: Daniel Jalkut Date: Fri, 8 May 2015 10:30:57 -0400 Subject: [PATCH] Remove declaration of static function XPCServiceConnectionHandler. The presence of this declaration caused warnings about unimplemented functions in files that import the header and have -Wunused-functions enabled. I don't see any value to retaining the declaration in the public header, as it's declared static and thus private to the implementation. Steve Streza's original comment that you probably shouldn't explicilty pass the function to xpc_main seems like more than just a good idea. --- XPCKit/XPCService.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/XPCKit/XPCService.h b/XPCKit/XPCService.h index 9f298d1..8924a6d 100644 --- a/XPCKit/XPCService.h +++ b/XPCKit/XPCService.h @@ -37,7 +37,3 @@ +(void)runService; @end - -// You can supply this as the parameter to xpc_main (but you might as -// well just call +[XPService runServiceWithConnectionHandler:]) -static void XPCServiceConnectionHandler(xpc_connection_t handler); \ No newline at end of file