fix almost all the warnings caused by -Wstrict-prototypes

This commit is contained in:
fridtjof
2019-01-05 03:28:03 +01:00
parent fe93ce7942
commit b834c69fae
15 changed files with 38 additions and 37 deletions
@@ -43,7 +43,7 @@
@param onComplete a block called when the the dialog is closed.
@return the newly created instance.
*/
- (instancetype)initWithDeviceInfo:(MXDeviceInfo*)deviceInfo wasNewDevice:(BOOL)wasNewDevice andMatrixSession:(MXSession*)session onComplete:(void (^)())onComplete;
- (instancetype)initWithDeviceInfo:(MXDeviceInfo*)deviceInfo wasNewDevice:(BOOL)wasNewDevice andMatrixSession:(MXSession*)session onComplete:(void (^)(void))onComplete;
/**
Show the dialog in a modal way.
@@ -21,7 +21,7 @@
@interface RoomKeyRequestViewController ()
{
void (^onComplete)();
void (^onComplete)(void);
EncryptionInfoView *encryptionInfoView;
@@ -31,7 +31,7 @@
@implementation RoomKeyRequestViewController
- (instancetype)initWithDeviceInfo:(MXDeviceInfo *)deviceInfo wasNewDevice:(BOOL)theWasNewDevice andMatrixSession:(MXSession *)session onComplete:(void (^)())onCompleteBlock
- (instancetype)initWithDeviceInfo:(MXDeviceInfo *)deviceInfo wasNewDevice:(BOOL)theWasNewDevice andMatrixSession:(MXSession *)session onComplete:(void (^)(void))onCompleteBlock
{
self = [super init];
if (self)