aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Example/Tests/API
diff options
context:
space:
mode:
authorGravatar Gil <mcg@google.com>2017-12-18 21:05:07 -0800
committerGravatar GitHub <noreply@github.com>2017-12-18 21:05:07 -0800
commit52cdf0b25a12b5baed8546893634dab9c1a03e56 (patch)
tree2de151c370aabbe1721a56f7bda3d703534309e9 /Firestore/Example/Tests/API
parent52c7329f2a74ad457898afebe21b1f02e35d0d0f (diff)
Clean up warnings (#578)
* Clean up warnings * Remove optional parens around ifs
Diffstat (limited to 'Firestore/Example/Tests/API')
-rw-r--r--Firestore/Example/Tests/API/FIRQueryTests.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Firestore/Example/Tests/API/FIRQueryTests.m b/Firestore/Example/Tests/API/FIRQueryTests.m
index 366a6bf..cac9f2a 100644
--- a/Firestore/Example/Tests/API/FIRQueryTests.m
+++ b/Firestore/Example/Tests/API/FIRQueryTests.m
@@ -33,6 +33,8 @@ NS_ASSUME_NONNULL_BEGIN
@implementation FIRQueryTests
- (void)testFilteringWithPredicate {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wnonnull"
// Everything is dummy for unit test here. Filtering does not require any app
// specific setting as far as we do not fetch data.
FIRFirestore *firestore = [[FIRFirestore alloc] initWithProjectID:@"abc"
@@ -41,6 +43,8 @@ NS_ASSUME_NONNULL_BEGIN
credentialsProvider:nil
workerDispatchQueue:nil
firebaseApp:nil];
+#pragma clang diagnostic pop
+
FSTResourcePath *path = [FSTResourcePath pathWithString:@"foo"];
FIRQuery *query = [FIRQuery referenceWithQuery:[FSTQuery queryWithPath:path] firestore:firestore];
FIRQuery *query1 = [query queryWhereField:@"f" isLessThanOrEqualTo:@1];