Skip to content

Commit 3841553

Browse files
authored
Merge pull request #72 from teanet/feature/#-fix-warnings
fix some warnings
2 parents e132bc8 + d8ea58c commit 3841553

5 files changed

Lines changed: 6 additions & 4 deletions

File tree

TLIndexPathTools.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@
536536
"$(inherited)",
537537
);
538538
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
539+
GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
539540
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
540541
GCC_WARN_UNDECLARED_SELECTOR = YES;
541542
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
@@ -575,6 +576,7 @@
575576
ENABLE_STRICT_OBJC_MSGSEND = YES;
576577
GCC_NO_COMMON_BLOCKS = YES;
577578
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
579+
GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
578580
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
579581
GCC_WARN_UNDECLARED_SELECTOR = YES;
580582
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;

TLIndexPathTools/Data Model/TLIndexPathItem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ NS_ASSUME_NONNULL_BEGIN
6868

6969
@end
7070

71-
NS_ASSUME_NONNULL_END
71+
NS_ASSUME_NONNULL_END

TLIndexPathTools/Data Model/TLIndexPathSectionInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ NS_ASSUME_NONNULL_BEGIN
4242
- (instancetype)initWithItems:(NSArray *)items name:(NSString * __nullable)name indexTitle:(NSString * __nullable)indexTitle;
4343
@end
4444

45-
NS_ASSUME_NONNULL_END
45+
NS_ASSUME_NONNULL_END

TLIndexPathTools/Extensions/No Results/TLNoResultsTableDataModel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@
3333
@property (strong, nonatomic, readonly) NSString *blankCellIdentifier;
3434
@property (strong, nonatomic, readonly) NSString *noResultsCellIdentifier;
3535
@property (strong, nonatomic, readonly) NSString *noResultsText;
36-
- initWithRows:(NSInteger)rows blankCellId:(NSString *)blankCellId noResultsCellId:(NSString *)noResultsCellId noResultsText:(NSString *)noResultsText;
36+
- (instancetype)initWithRows:(NSInteger)rows blankCellId:(NSString *)blankCellId noResultsCellId:(NSString *)noResultsCellId noResultsText:(NSString *)noResultsText;
3737
@end

TLIndexPathTools/Extensions/No Results/TLNoResultsTableDataModel.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
@implementation TLNoResultsTableDataModel
2828

29-
- (id)initWithRows:(NSInteger)rows blankCellId:(NSString *)blankCellId noResultsCellId:(NSString *)noResultsCellId noResultsText:(NSString *)noResultsText
29+
- (instancetype)initWithRows:(NSInteger)rows blankCellId:(NSString *)blankCellId noResultsCellId:(NSString *)noResultsCellId noResultsText:(NSString *)noResultsText
3030
{
3131
rows = MAX(rows, 1);
3232
NSMutableArray *items = [[NSMutableArray alloc] initWithCapacity:rows];

0 commit comments

Comments
 (0)