Fix small build warnings.
This commit is contained in:
parent
07b2179db7
commit
3110cebd25
@ -18,7 +18,7 @@ const int DarwinNotificationInvalidObserver = NOTIFY_TOKEN_INVALID;
|
||||
+ (void)postNotificationName:(DarwinNotificationName *)name
|
||||
{
|
||||
OWSAssertDebug(name.isValid);
|
||||
notify_post(name.cString);
|
||||
notify_post((const char *)name.cString);
|
||||
}
|
||||
|
||||
+ (int)addObserverForName:(DarwinNotificationName *)name
|
||||
@ -28,7 +28,7 @@ const int DarwinNotificationInvalidObserver = NOTIFY_TOKEN_INVALID;
|
||||
OWSAssertDebug(name.isValid);
|
||||
|
||||
int observerToken;
|
||||
notify_register_dispatch(name.cString, &observerToken, queue, block);
|
||||
notify_register_dispatch((const char *)name.cString, &observerToken, queue, block);
|
||||
return observerToken;
|
||||
}
|
||||
|
||||
|
||||
@ -217,7 +217,7 @@ public extension ExperienceUpgrade {
|
||||
var hasViewed: Bool { firstViewedTimestamp > 0 }
|
||||
|
||||
func upsertWith(transaction: SDSAnyWriteTransaction, changeBlock: (ExperienceUpgrade) -> Void) {
|
||||
guard id.shouldSave else { return Logger.debug("Skipping save for experience upgrade \(id)") }
|
||||
guard id.shouldSave else { return Logger.debug("Skipping save for experience upgrade \(String(describing: id))") }
|
||||
|
||||
let experienceUpgrade = ExperienceUpgrade.anyFetch(uniqueId: uniqueId, transaction: transaction) ?? self
|
||||
changeBlock(experienceUpgrade)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user