Fix small build warnings.

This commit is contained in:
Matthew Chen 2020-04-07 16:39:46 -03:00
parent 07b2179db7
commit 3110cebd25
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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)