From 1e27caa9778d174a9ddba7027adc587af1ac752d Mon Sep 17 00:00:00 2001 From: michael_r_may Date: Sun, 5 May 2013 22:18:53 +0100 Subject: [PATCH] Switched the #warning messages to #pragma message messages instead, so you can still compile the framework with -Werror switched on --- AFNetworking/AFHTTPClient.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AFNetworking/AFHTTPClient.h b/AFNetworking/AFHTTPClient.h index ddc75dd..2e5d504 100644 --- a/AFNetworking/AFHTTPClient.h +++ b/AFNetworking/AFHTTPClient.h @@ -81,14 +81,14 @@ typedef enum { AFNetworkReachabilityStatusReachableViaWiFi = 2, } AFNetworkReachabilityStatus; #else -#warning SystemConfiguration framework not found in project, or not included in precompiled header. Network reachability functionality will not be available. +#pragma message("SystemConfiguration framework not found in project, or not included in precompiled header. Network reachability functionality will not be available.") #endif #ifndef __UTTYPE__ #if __IPHONE_OS_VERSION_MIN_REQUIRED -#warning MobileCoreServices framework not found in project, or not included in precompiled header. Automatic MIME type detection when uploading files in multipart requests will not be available. +#pragma message("MobileCoreServices framework not found in project, or not included in precompiled header. Automatic MIME type detection when uploading files in multipart requests will not be available.") #else -#warning CoreServices framework not found in project, or not included in precompiled header. Automatic MIME type detection when uploading files in multipart requests will not be available. +#pragma message("CoreServices framework not found in project, or not included in precompiled header. Automatic MIME type detection when uploading files in multipart requests will not be available.") #endif #endif