From 193fb8799cf5436a8a345323e72ea02d8d9dbf5a Mon Sep 17 00:00:00 2001 From: Dulma Rodriguez Date: Fri, 18 Dec 2015 06:45:38 -0800 Subject: [PATCH] Removing issues in the models that cause Infer to flag warnings Summary: public The properties in those models needed to be made nonatomic. Reviewed By: akotulski Differential Revision: D2773650 fb-gh-sync-id: 903e7df --- infer/models/objc/src/NSData.m | 2 +- infer/models/objc/src/NSFileHandle.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/infer/models/objc/src/NSData.m b/infer/models/objc/src/NSData.m index 16993b23a..e67ac2e9e 100644 --- a/infer/models/objc/src/NSData.m +++ b/infer/models/objc/src/NSData.m @@ -14,7 +14,7 @@ NSData* __objc_alloc(NSData*); @interface NSData : NSObject -@property (readonly) const void *bytes; +@property (nonatomic, readonly) const void *bytes; + (instancetype)dataWithBytesNoCopy:(void *)bytes length:(NSUInteger)length; + (instancetype)dataWithBytesNoCopy:(void *)bytes length:(NSUInteger)length freeWhenDone:(BOOL)b; diff --git a/infer/models/objc/src/NSFileHandle.m b/infer/models/objc/src/NSFileHandle.m index 1edcad2ed..af7743ad0 100644 --- a/infer/models/objc/src/NSFileHandle.m +++ b/infer/models/objc/src/NSFileHandle.m @@ -20,7 +20,7 @@ - (instancetype)initWithFileDescriptor:(int)fd; -@property (readonly) int fileDescriptor; +@property (nonatomic, readonly) int fileDescriptor; @end