Skip to content

Commit

Permalink
Add manual warnings to files that suppress nullability warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Anderas committed Jul 18, 2022
1 parent 07bc82f commit 1a3412b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MatrixSDK/Data/MXRoom.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
NSInteger const kMXRoomAlreadyJoinedErrorCode = 9001;
NSInteger const kMXRoomInvalidInviteSenderErrorCode = 9002;

#warning File has not been annotated with nullability, see MX_ASSUME_MISSING_NULLABILITY_BEGIN

@interface MXRoom ()
{
/**
Expand Down
2 changes: 2 additions & 0 deletions MatrixSDK/Data/MXRoomAccountData.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#import "MXEvent.h"
#import "MXRoomCreateContent.h"

#warning File has not been annotated with nullability, see MX_ASSUME_MISSING_NULLABILITY_BEGIN

@interface MXRoomAccountData ()

@property (nonatomic, readwrite) MXVirtualRoomInfo *virtualRoomInfo;
Expand Down
2 changes: 2 additions & 0 deletions MatrixSDK/JSONModels/MXEvent.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#import "MXEventReferenceChunk.h"
#import "MXEventContentLocation.h"

#warning File has not been annotated with nullability, see MX_ASSUME_MISSING_NULLABILITY_BEGIN

#pragma mark - Constants definitions

NSString *const kMXEventTypeStringRoomName = @"m.room.name";
Expand Down
2 changes: 2 additions & 0 deletions MatrixSDK/JSONModels/MXJSONModels.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@

#pragma mark - Implementation

#warning File has not been annotated with nullability, see MX_ASSUME_MISSING_NULLABILITY_BEGIN

@implementation MXPublicRoom

+ (id)modelFromJSON:(NSDictionary *)JSONDictionary
Expand Down
2 changes: 2 additions & 0 deletions MatrixSDK/Utils/MXBugReportRestClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
#import <MatrixKit/MatrixKit.h>
#endif

#warning File has not been annotated with nullability, see MX_ASSUME_MISSING_NULLABILITY_BEGIN

@interface MXBugReportRestClient ()
{
// The bug report API server URL.
Expand Down
2 changes: 2 additions & 0 deletions MatrixSDK/Utils/MXTools.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#import <os/proc.h>
#endif

#warning File has not been annotated with nullability, see MX_ASSUME_MISSING_NULLABILITY_BEGIN

#pragma mark - Constant definition
NSString *const kMXToolsRegexStringForEmailAddress = @"[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}";

Expand Down

0 comments on commit 1a3412b

Please sign in to comment.