Fix build warnings.

pull/1/head
Matthew Chen 8 years ago
parent 3cd6a33aa6
commit 9a08afae28

@ -3750,8 +3750,9 @@ typedef enum : NSUInteger {
lastVisibleIndexPath = indexPath; lastVisibleIndexPath = indexPath;
} }
} }
if (lastVisibleIndexPath && lastVisibleIndexPath.row >= self.viewItems.count) { if (lastVisibleIndexPath && lastVisibleIndexPath.row >= (NSInteger)self.viewItems.count) {
return (self.viewItems.count > 0 ? [NSIndexPath indexPathForRow:self.viewItems.count - 1 inSection:0] : nil); return (self.viewItems.count > 0 ? [NSIndexPath indexPathForRow:(NSInteger)self.viewItems.count - 1 inSection:0]
: nil);
} }
return lastVisibleIndexPath; return lastVisibleIndexPath;
} }

@ -27,6 +27,8 @@ NS_ASSUME_NONNULL_BEGIN
@end @end
#pragma mark -
@implementation TSThread @implementation TSThread
+ (NSString *)collection { + (NSString *)collection {

@ -12,6 +12,16 @@ NS_ASSUME_NONNULL_BEGIN
@implementation OWSOutgoingSyncMessage @implementation OWSOutgoingSyncMessage
- (instancetype)initWithCoder:(NSCoder *)coder
{
self = [super initWithCoder:coder];
if (self) {
}
return self;
}
- (instancetype)init - (instancetype)init
{ {
self = [super initOutgoingMessageWithTimestamp:[NSDate ows_millisecondTimeStamp] self = [super initOutgoingMessageWithTimestamp:[NSDate ows_millisecondTimeStamp]

Loading…
Cancel
Save