From 2fc6d999b595cc453e265f0593bdd10f0f67556c Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Thu, 19 Jan 2012 17:25:29 -0800 Subject: [PATCH] xml_request_operation_processing_queue() is Mac-only. Wrap xml_request_operation_processing_queue() in a test for __MAC_OS_X_VERSION_MIN_REQUIRED because it is only used by a Mac-specific code block down below. This addresses an unused symbol warning when compiling with strict settings. --- AFNetworking/AFXMLRequestOperation.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AFNetworking/AFXMLRequestOperation.m b/AFNetworking/AFXMLRequestOperation.m index d01a084..48a6783 100644 --- a/AFNetworking/AFXMLRequestOperation.m +++ b/AFNetworking/AFXMLRequestOperation.m @@ -24,6 +24,7 @@ #include +#if __MAC_OS_X_VERSION_MIN_REQUIRED static dispatch_queue_t af_xml_request_operation_processing_queue; static dispatch_queue_t xml_request_operation_processing_queue() { if (af_xml_request_operation_processing_queue == NULL) { @@ -32,6 +33,7 @@ static dispatch_queue_t xml_request_operation_processing_queue() { return af_xml_request_operation_processing_queue; } +#endif @interface AFXMLRequestOperation () @property (readwrite, nonatomic, retain) NSXMLParser *responseXMLParser;