From 0e4fea0c3e8c6bd62cc70ffd80402803c09be3e8 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Wed, 7 Aug 2024 20:12:55 +0000 Subject: [PATCH] Fix warnings FossilOrigin-Name: 08a585424af83bb8327987ff98917d30525ce0fd43536f413933df109b173def --- src/MTXClient.m | 2 +- tests/Tests.m | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/MTXClient.m b/src/MTXClient.m index 75851d1..aefd979 100644 --- a/src/MTXClient.m +++ b/src/MTXClient.m @@ -420,7 +420,7 @@ validateHomeserver(OFIRI *homeserver) - (void)sendMessage: (OFString *)message roomID: (OFString *)roomID - block: (MTXClientResponseBlock)block; + block: (MTXClientResponseBlock)block { void *pool = objc_autoreleasePoolPush(); OFString *path = [OFString stringWithFormat: diff --git a/tests/Tests.m b/tests/Tests.m index 1ff54ef..5dda8c2 100644 --- a/tests/Tests.m +++ b/tests/Tests.m @@ -37,7 +37,8 @@ OF_APPLICATION_DELEGATE(Tests) - (void)applicationDidFinishLaunching: (OFNotification *)notification { - __auto_type environment = OFApplication.environment; + OFDictionary *environment = + OFApplication.environment; if (environment[@"OBJMATRIX_USER"] == nil || environment[@"OBJMATRIX_PASS"] == nil || environment[@"OBJMATRIX_HS"] == nil) {