Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Unified Diff: third_party/protobuf/objectivec/GPBUnknownField.m

Issue 2598373002: third_party/protobuf: Update to HEAD (5f65ee6ac7) (Closed)
Patch Set: Update to new HEAD (5f65ee6ac7) Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/protobuf/objectivec/GPBUnknownField.m
diff --git a/third_party/protobuf/objectivec/GPBUnknownField.m b/third_party/protobuf/objectivec/GPBUnknownField.m
index 0e29bde50f66b5861d93a180fa36a5b5e1b85c37..30efe7563b712d61e6404b6597bd3dcfaffc64ed 100644
--- a/third_party/protobuf/objectivec/GPBUnknownField.m
+++ b/third_party/protobuf/objectivec/GPBUnknownField.m
@@ -67,6 +67,12 @@
[super dealloc];
}
+// Direct access is use for speed, to avoid even internally declaring things
+// read/write, etc. The warning is enabled in the project to ensure code calling
+// protos can turn on -Wdirect-ivar-access without issues.
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdirect-ivar-access"
+
- (id)copyWithZone:(NSZone *)zone {
GPBUnknownField *result =
[[GPBUnknownField allocWithZone:zone] initWithNumber:number_];
@@ -323,4 +329,6 @@
}
}
+#pragma clang diagnostic pop
+
@end
« no previous file with comments | « third_party/protobuf/objectivec/GPBUnknownField.h ('k') | third_party/protobuf/objectivec/GPBUnknownFieldSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698