diff --git a/OHHTTPStubs/Sources/OHHTTPStubsResponse.m b/OHHTTPStubs/Sources/OHHTTPStubsResponse.m index 03e4dba5..256878d9 100644 --- a/OHHTTPStubs/Sources/OHHTTPStubsResponse.m +++ b/OHHTTPStubs/Sources/OHHTTPStubsResponse.m @@ -167,7 +167,7 @@ -(instancetype)initWithFileURL:(NSURL *)fileURL NSNumber *fileSize; NSError *error; - const BOOL success = [fileURL getResourceValue:&fileSize forKey:NSURLFileSizeKey error:&error]; + const BOOL success __unused = [fileURL getResourceValue:&fileSize forKey:NSURLFileSizeKey error:&error]; NSAssert(success && fileSize, @"%s Couldn't get the file size for URL. \ The URL was: %@. \ diff --git a/OHHTTPStubs/Sources/Swift/OHHTTPStubsSwift.swift b/OHHTTPStubs/Sources/Swift/OHHTTPStubsSwift.swift index 5229dcb8..02b065a7 100644 --- a/OHHTTPStubs/Sources/Swift/OHHTTPStubsSwift.swift +++ b/OHHTTPStubs/Sources/Swift/OHHTTPStubsSwift.swift @@ -124,6 +124,7 @@ public func isExtension(ext: String) -> OHHTTPStubsTestBlock { * (1) using `[q:""]`, which matches a query parameter "?q=" with an empty value, and * (2) using `[q:nil]`, which matches a query parameter "?q" without a value at all */ +@available(iOS 8.0, OSX 10.10, *) public func containsQueryParams(params: [String:String?]) -> OHHTTPStubsTestBlock { return { req in if let url = req.URL {