From 764222995141df6c4445dff9d3bced1c07cf8365 Mon Sep 17 00:00:00 2001 From: Skylar Schipper Date: Mon, 28 Jan 2013 16:06:51 -0800 Subject: [PATCH] Added `__attribute__((unused))` to a few properties to suppress unused warning in external variable definitions in Xcode 4.6 --- Classes/HockeySDK.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Classes/HockeySDK.h b/Classes/HockeySDK.h index c7e6c449eb..fb6601450c 100644 --- a/Classes/HockeySDK.h +++ b/Classes/HockeySDK.h @@ -58,7 +58,7 @@ typedef enum { BITCrashAPIReceivedEmptyResponse, BITCrashAPIErrorWithStatusCode } BITCrashErrorReason; -extern NSString *const kBITCrashErrorDomain; +extern NSString *const __attribute__((unused)) kBITCrashErrorDomain; // Update App Versions @@ -71,7 +71,7 @@ typedef enum { BITUpdateAPIClientAuthorizationMissingSecret, BITUpdateAPIClientCannotCreateConnection } BITUpdateErrorReason; -extern NSString *const kBITUpdateErrorDomain; +extern NSString *const __attribute__((unused)) kBITUpdateErrorDomain; // Update App Versions @@ -85,7 +85,7 @@ typedef enum { BITFeedbackAPIClientAuthorizationMissingSecret, BITFeedbackAPIClientCannotCreateConnection } BITFeedbackErrorReason; -extern NSString *const kBITFeedbackErrorDomain; +extern NSString *const __attribute__((unused)) kBITFeedbackErrorDomain; // HockeySDK @@ -95,7 +95,7 @@ typedef enum { BITHockeyErrorUnknown, HockeyAPIClientMissingJSONLibrary } BITHockeyErrorReason; -extern NSString *const kBITHockeyErrorDomain; +extern NSString *const __attribute__((unused)) kBITHockeyErrorDomain; #endif