diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2016-05-26 11:10:00 -0400 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2016-05-26 11:10:00 -0400 |
commit | 0f27cab4fb378b94a91c2b1522174ec21719df9d (patch) | |
tree | 6111cbd70b21027c678647381eba6d3974b51740 /objectivec/GPBMessage_PackagePrivate.h | |
parent | ed87c1fe2c6e1633cadb62cf54b2723b2b25c280 (diff) | |
parent | c8a440dfb68074ff310e624928cd2dd61c101728 (diff) | |
download | protobuf-0f27cab4fb378b94a91c2b1522174ec21719df9d.tar.gz protobuf-0f27cab4fb378b94a91c2b1522174ec21719df9d.tar.bz2 protobuf-0f27cab4fb378b94a91c2b1522174ec21719df9d.zip |
Merge pull request #1600 from thomasvl/objc_tighter_warnings
Add more warnings to for the ObjC runtime build
Diffstat (limited to 'objectivec/GPBMessage_PackagePrivate.h')
-rw-r--r-- | objectivec/GPBMessage_PackagePrivate.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/objectivec/GPBMessage_PackagePrivate.h b/objectivec/GPBMessage_PackagePrivate.h index 478db2cf..ff3cd6eb 100644 --- a/objectivec/GPBMessage_PackagePrivate.h +++ b/objectivec/GPBMessage_PackagePrivate.h @@ -110,9 +110,12 @@ CF_EXTERN_C_BEGIN // Call this before using the readOnlySemaphore_. This ensures it is created only once. NS_INLINE void GPBPrepareReadOnlySemaphore(GPBMessage *self) { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdirect-ivar-access" dispatch_once(&self->readOnlySemaphoreCreationOnce_, ^{ self->readOnlySemaphore_ = dispatch_semaphore_create(1); }); +#pragma clang diagnostic pop } // Returns a new instance that was automatically created by |autocreator| for |