Skip to content
Permalink
Browse files

Fixing unused parameter warnings on OS X

  • Loading branch information...
mattt committed Dec 15, 2014
1 parent c44f65f commit 35da4549f3791e4d8fbbdd821b48d76426815915
Showing with 8 additions and 0 deletions.
  1. +8 −0 CargoBay/CargoBay.m
@@ -175,6 +175,8 @@ BOOL CBValidateTrust(SecTrustRef trust, NSError * __autoreleasing *error) {

return NO;
}
#else
#pragma unused (trust, error)
#endif

return YES;
@@ -246,6 +248,8 @@ BOOL CBValidatePurchaseInfoMatchesReceiptForDevice(NSDictionary *purchaseInfo, N
}
#endif
}
#else
#pragma unused (purchaseInfo, receipt)
#endif

return YES;
@@ -757,6 +761,8 @@ - (void)verifyTransaction:(SKPaymentTransaction *)transaction

#ifdef __IPHONE_OS_VERSION_MIN_REQUIRED
[self verifyTransactionReceipt:CBTransactionReceiptFromPaymentTransaction(transaction) password:passwordOrNil success:success failure:failure];
#else
#pragma unused (passwordOrNil, success)
#endif
}

@@ -1003,6 +1009,8 @@ - (BOOL)isValidTransaction:(SKPaymentTransaction *)transaction
return NO;
}
}
#else
#pragma unused (transaction, error)
#endif

return YES;

0 comments on commit 35da454

Please sign in to comment.
You can’t perform that action at this time.