From 4192a31cea049ee4675dfd7fe40eef2e791c530d Mon Sep 17 00:00:00 2001 From: Paul Beusterien Date: Thu, 18 Jan 2018 13:39:46 -0800 Subject: [PATCH] Fix build warnings by making void parameter explicit --- .../Core/Tests/FIRAppAssociationRegistrationUnitTests.m | 2 +- Example/Core/Tests/FIRLoggerTest.m | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Example/Core/Tests/FIRAppAssociationRegistrationUnitTests.m b/Example/Core/Tests/FIRAppAssociationRegistrationUnitTests.m index 2bc1de7f3c4..60f0651e5ee 100644 --- a/Example/Core/Tests/FIRAppAssociationRegistrationUnitTests.m +++ b/Example/Core/Tests/FIRAppAssociationRegistrationUnitTests.m @@ -34,7 +34,7 @@ /** @var gCreateNewObject @brief A block that returns a new object everytime it is called. */ -static id _Nullable (^gCreateNewObject)() = ^id _Nullable() { +static id _Nullable (^gCreateNewObject)(void) = ^id _Nullable() { return [[NSObject alloc] init]; }; diff --git a/Example/Core/Tests/FIRLoggerTest.m b/Example/Core/Tests/FIRLoggerTest.m index 70b688af2d3..5cc74658cef 100644 --- a/Example/Core/Tests/FIRLoggerTest.m +++ b/Example/Core/Tests/FIRLoggerTest.m @@ -28,13 +28,13 @@ extern const char *kFIRLoggerCustomASLMessageFormat; -extern void FIRResetLogger(); +extern void FIRResetLogger(void); -extern aslclient getFIRLoggerClient(); +extern aslclient getFIRLoggerClient(void); -extern dispatch_queue_t getFIRClientQueue(); +extern dispatch_queue_t getFIRClientQueue(void); -extern BOOL getFIRLoggerDebugMode(); +extern BOOL getFIRLoggerDebugMode(void); // Define the message format again to make sure the format doesn't accidentally change. static NSString *const kCorrectASLMessageFormat =