Skip to content

Commit 7453895

Browse files
authored
[Dynamic Links] Address Xcode 14.3 Analyzer issues (#11243)
1 parent a553a4d commit 7453895

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

FirebaseDynamicLinks/Sources/FIRDLJavaScriptExecutor.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ - (void)webView:(WKWebView *)webView
156156
// From:
157157
// https://developer.apple.com/documentation/apple-silicon/about-the-rosetta-translation-environment
158158
#if TARGET_OS_SIMULATOR
159-
static int processIsTranslated() {
159+
static int processIsTranslated(void) {
160160
int ret = 0;
161161
size_t size = sizeof(ret);
162162
if (sysctlbyname("sysctl.proc_translated", &ret, &size, NULL, 0) == -1) {

FirebaseDynamicLinks/Sources/Utilities/FDLUtilities.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ BOOL FIRDLOSVersionSupported(NSString *_Nullable systemVersion, NSString *minSup
162162
return [systemVersion compare:minSupportedVersion options:NSNumericSearch] != NSOrderedAscending;
163163
}
164164

165-
NSDate *_Nullable FIRDLAppInstallationDate() {
165+
NSDate *_Nullable FIRDLAppInstallationDate(void) {
166166
NSURL *documentsDirectoryURL =
167167
[[[NSFileManager defaultManager] URLsForDirectory:NSApplicationSupportDirectory
168168
inDomains:NSUserDomainMask] firstObject];
@@ -178,7 +178,7 @@ BOOL FIRDLOSVersionSupported(NSString *_Nullable systemVersion, NSString *minSup
178178
return nil;
179179
}
180180

181-
NSString *FIRDLDeviceModelName() {
181+
NSString *FIRDLDeviceModelName(void) {
182182
// this method will return string like iPad3,3
183183
// for Simulator this will be x86_64
184184
static NSString *machineString = @"";
@@ -199,17 +199,17 @@ BOOL FIRDLOSVersionSupported(NSString *_Nullable systemVersion, NSString *minSup
199199
return machineString;
200200
}
201201

202-
NSString *FIRDLDeviceLocale() {
202+
NSString *FIRDLDeviceLocale(void) {
203203
// expected return value from this method looks like: @"en-US"
204204
return [[[NSLocale currentLocale] localeIdentifier] stringByReplacingOccurrencesOfString:@"_"
205205
withString:@"-"];
206206
}
207207

208-
NSString *FIRDLDeviceLocaleRaw() {
208+
NSString *FIRDLDeviceLocaleRaw(void) {
209209
return [[NSLocale currentLocale] localeIdentifier];
210210
}
211211

212-
NSString *FIRDLDeviceTimezone() {
212+
NSString *FIRDLDeviceTimezone(void) {
213213
NSString *timeZoneName = [[NSTimeZone localTimeZone] name];
214214
return timeZoneName;
215215
}

0 commit comments

Comments
 (0)