Skip to content

Commit a446367

Browse files
authored
Address Xcode 14.3 build warnings and a few typos (#11063)
1 parent 43cd9c2 commit a446367

File tree

10 files changed

+15
-16
lines changed

10 files changed

+15
-16
lines changed

Crashlytics/Crashlytics/Components/FIRCLSCrashedMarkerFile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
const char *FIRCLSCrashedMarkerFileName = "previously-crashed";
2020

21-
void FIRCLSCreateCrashedMarkerFile() {
21+
void FIRCLSCreateCrashedMarkerFile(void) {
2222
FIRCLSFile file;
2323

2424
if (!FIRCLSFileInitWithPath(&file, _firclsContext.readonly->previouslyCrashedFileFullPath, false)) {

Crashlytics/Crashlytics/Components/FIRCLSHost.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ vm_size_t FIRCLSHostGetPageSize(void) {
106106

107107
// This comes from the Apple documentation here:
108108
// https://developer.apple.com/documentation/apple_silicon/about_the_rosetta_translation_environment
109-
bool FIRCLSHostIsRosettaTranslated() {
109+
bool FIRCLSHostIsRosettaTranslated(void) {
110110
#if TARGET_OS_MAC
111111
int result = 0;
112112
size_t size = sizeof(result);

FirebaseAuth/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#Unrealeased
2-
- [feature] Added Firebase App Check support to Firebase Auth.
1+
# 10.8.0
2+
- [added] Added Firebase App Check support to Firebase Auth.
33

44
# 10.7.0
55
- [added] Added an API for developers to pass the fullName from the Sign in with Apple credential to Firebase. (#10068)

FirebaseAuth/Sources/Auth/FIRAuthGlobalWorkQueue.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
NS_ASSUME_NONNULL_BEGIN
2020

21-
dispatch_queue_t FIRAuthGlobalWorkQueue() {
21+
dispatch_queue_t FIRAuthGlobalWorkQueue(void) {
2222
static dispatch_once_t once;
2323
static dispatch_queue_t queue;
2424
dispatch_once(&once, ^{

FirebaseAuth/Tests/Unit/FIRAuthBackendRPCImplementationTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ - (void)testRequest_IncludesHeartbeatPayload_WhenHeartbeatsNeedSending {
465465
/** @fn testRequest_IncludesAppCheckHeader
466466
@brief This test checks the behavior of @c postWithRequest:response:callback:
467467
to verify that a appCheck token is attached as a header to an
468-
outgoing request .
468+
outgoing request.
469469
*/
470470
- (void)testRequest_IncludesAppCheckHeader {
471471
// Given

FirebaseCore/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Firebase 10.8.0
2+
- Fix new build warnings introduced by Xcode 14.3. (#11059)
3+
14
# Firebase 10.4.0
25
- Deprecate `androidClientID` and `trackingID` from FirebaseOptions. (#10520)
36

FirebaseDatabaseSwift/Sources/Codable/DataSnapshot+ReadDecodable.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import Foundation
1818
import FirebaseDatabase
19+
import FirebaseSharedSwift
1920

2021
public extension DataSnapshot {
2122
/// Retrieves the value of a snapshot and converts it to an instance of

FirebaseDatabaseSwift/Sources/Codable/DatabaseReference+WriteEncodable.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import Foundation
1818
import FirebaseDatabase
19+
import FirebaseSharedSwift
1920

2021
public extension DatabaseReference {
2122
/// Encodes an instance of `Encodable` and overwrites the encoded data

FirebaseMessaging/Sources/FIRMessagingUtilities.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
#pragma mark - URL Helpers
4141

42-
NSString *FIRMessagingTokenRegisterServer() {
42+
NSString *FIRMessagingTokenRegisterServer(void) {
4343
return @"https://fcmtoken.googleapis.com/register";
4444
}
4545

@@ -91,7 +91,7 @@ int64_t FIRMessagingCurrentTimestampInMilliseconds(void) {
9191
#endif
9292
}
9393

94-
NSString *FIRMessagingFirebaseAppID() {
94+
NSString *FIRMessagingFirebaseAppID(void) {
9595
return [FIROptions defaultOptions].googleAppID;
9696
}
9797

@@ -273,7 +273,7 @@ NSSearchPathDirectory FIRMessagingSupportedDirectory(void) {
273273
return locales;
274274
}
275275

276-
NSString *FIRMessagingCurrentLocale() {
276+
NSString *FIRMessagingCurrentLocale(void) {
277277
NSArray *locales = FIRMessagingFirebaseLocales();
278278
NSArray *preferredLocalizations =
279279
[NSBundle preferredLocalizationsFromArray:locales
@@ -283,7 +283,7 @@ NSSearchPathDirectory FIRMessagingSupportedDirectory(void) {
283283
return legalDocsLanguage ? legalDocsLanguage : @"en";
284284
}
285285

286-
BOOL FIRMessagingHasLocaleChanged() {
286+
BOOL FIRMessagingHasLocaleChanged(void) {
287287
NSString *lastLocale = [[GULUserDefaults standardUserDefaults]
288288
stringForKey:kFIRMessagingInstanceIDUserDefaultsKeyLocale];
289289
NSString *currentLocale = FIRMessagingCurrentLocale();

Firestore/core/include/firebase/firestore/timestamp.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,13 @@ class Timestamp {
104104
* Converts `time_t` to a `Timestamp`.
105105
*
106106
* @param seconds_since_unix_epoch
107-
* @parblock
108107
* The number of seconds of UTC time since Unix epoch
109108
* 1970-01-01T00:00:00Z. Can be negative to represent dates before the
110109
* epoch. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z
111110
* inclusive; otherwise, assertion failure will be triggered.
112-
*
113111
* Note that while the epoch of `time_t` is unspecified, it's usually Unix
114112
* epoch. If this assumption is broken, this function will produce
115113
* incorrect results.
116-
* @endparblock
117114
*
118115
* @return a new timestamp with the given number of seconds and zero
119116
* nanoseconds.
@@ -125,17 +122,14 @@ class Timestamp {
125122
* Converts `std::chrono::time_point` to a `Timestamp`.
126123
*
127124
* @param time_point
128-
* @parblock
129125
* The time point with system clock's epoch, which is
130126
* presumed to be Unix epoch 1970-01-01T00:00:00Z. Can be negative to
131127
* represent dates before the epoch. Must be from 0001-01-01T00:00:00Z to
132128
* 9999-12-31T23:59:59Z inclusive; otherwise, assertion failure will be
133129
* triggered.
134-
*
135130
* Note that while the epoch of `std::chrono::system_clock` is
136131
* unspecified, it's usually Unix epoch. If this assumption is broken,
137132
* this constructor will produce incorrect results.
138-
* @endparblock
139133
*/
140134
static Timestamp FromTimePoint(
141135
std::chrono::time_point<std::chrono::system_clock> time_point);

0 commit comments

Comments
 (0)