fix more compiler warnings

* initWithCoder is a designated initializer for *any* TSYapDatabase model
* doc fixes
* cast log param appropriately

Compiler Warnings: 337 -> 331

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent 50df5b682b
commit ad31c75e88

@ -22,7 +22,7 @@ extern uint32_t const OWSDevicePrimaryDeviceId;
* Set local database of devices to `devices`.
*
* This will create missing devices, update existing devices, and delete stale devices.
* @param devices
* @param devices Removes any existing devices, replacing them with `devices`
*/
+ (void)replaceAll:(NSArray<OWSDevice *> *)devices;
@ -33,7 +33,7 @@ extern uint32_t const OWSDevicePrimaryDeviceId;
/**
*
* @param transaction
* @param transaction yapTransaction
* @return
* If the user has any linked devices (apart from the device this app is running on).
*/

@ -17,6 +17,8 @@ typedef NS_ENUM(NSUInteger, TSAttachmentPointerState) {
*/
@interface TSAttachmentPointer : TSAttachment
- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithServerId:(UInt64)serverId
key:(NSData *)key
digest:(nullable NSData *)digest

@ -196,7 +196,7 @@ static uint32_t const OWSFingerprintDefaultHashIterations = 5200;
*
* This method is intended to be somewhat expensive to produce in order to be brute force adverse.
*
* @param stableId
* @param stableIdData
* Immutable global identifier e.g. Signal Identifier, an e164 formatted phone number encoded as UTF-8 data
* @param publicKey
* The current public key for <stableId>

@ -153,7 +153,7 @@ NSString *const TSStorageManagerKeyPrekeyCurrentSignedPrekeyId = @"currentSigned
DDLogInfo(@"%@ SignedPreKeys Report:", tag);
DDLogInfo(@"%@ currentId: %@", tag, currentId);
DDLogInfo(@"%@ firstPrekeyUpdateFailureDate: %@", tag, firstPrekeyUpdateFailureDate);
DDLogInfo(@"%@ prekeyUpdateFailureCount: %d", tag, prekeyUpdateFailureCount);
DDLogInfo(@"%@ prekeyUpdateFailureCount: %lu", tag, (unsigned long)prekeyUpdateFailureCount);
NSUInteger count = [transaction numberOfKeysInCollection:TSStorageManagerSignedPreKeyStoreCollection];
DDLogInfo(@"%@ All Keys (count: %lu):", tag, (unsigned long)count);

Loading…
Cancel
Save