Fix build warnings.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-06-13 10:42:35 -04:00
parent 07fca2b5d2
commit 389305e2b9
4 changed files with 2 additions and 11 deletions

View File

@ -85,10 +85,9 @@ NS_ASSUME_NONNULL_BEGIN
@"Paul",
@"Bertha",
];
return values[arc4random_uniform(values.count)];
return values[(NSUInteger)arc4random_uniform((uint32_t)values.count)];
}
+ (NSString *)randomLastName
{
NSArray<NSString *> *values = @[

View File

@ -2,7 +2,7 @@
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
typedef void (^ConfigureShapeLayerBlock)(CAShapeLayer *layer, CGRect bounds);
typedef void (^ConfigureShapeLayerBlock)(CAShapeLayer *_Nonnull layer, CGRect bounds);
NS_ASSUME_NONNULL_BEGIN

View File

@ -106,12 +106,6 @@ NS_ASSUME_NONNULL_BEGIN
return [NSString stringWithFormat:@"[%@]", self.class];
}
// TODO rename to logTag, tag is an existing UIView method.
- (NSString *)tag
{
return self.class.tag;
}
@end
NS_ASSUME_NONNULL_END

View File

@ -10,8 +10,6 @@ NS_ASSUME_NONNULL_BEGIN
@property (atomic) BOOL hasMoreUnseenMessages;
- (instancetype)initWithTimestamp:(uint64_t)timestamp thread:(TSThread *)thread NS_DESIGNATED_INITIALIZER;
@end
#pragma mark -