Skip to content

Commit 3dcbbae

Browse files
vashworthnploi
authored andcommitted
[video_player, google_sign_in] Updates functions without a prototype to avoid deprecation warning (flutter#3873)
Fixes usages of function without a prototype, surfaced by warning "a function declaration without a prototype is deprecated in all versions of C" introduced in Xcode 14.3. Tests failed because of this in flutter#3868.
1 parent ee83c58 commit 3dcbbae

File tree

6 files changed

+12
-4
lines changed

6 files changed

+12
-4
lines changed

packages/google_sign_in/google_sign_in_ios/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 5.6.2
2+
3+
* Updates functions without a prototype to avoid deprecation warning.
4+
15
## 5.6.1
26

37
* Clarifies explanation of endorsement in README.

packages/google_sign_in/google_sign_in_ios/ios/Classes/FLTGoogleSignInPlugin.m

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

1515
static NSString *const kServerClientIdKey = @"SERVER_CLIENT_ID";
1616

17-
static NSDictionary<NSString *, id> *loadGoogleServiceInfo() {
17+
static NSDictionary<NSString *, id> *loadGoogleServiceInfo(void) {
1818
NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"GoogleService-Info"
1919
ofType:@"plist"];
2020
if (plistPath) {

packages/google_sign_in/google_sign_in_ios/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: google_sign_in_ios
22
description: iOS implementation of the google_sign_in plugin.
33
repository: https://github.com/flutter/packages/tree/main/packages/google_sign_in/google_sign_in_ios
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+google_sign_in%22
5-
version: 5.6.1
5+
version: 5.6.2
66

77
environment:
88
sdk: ">=2.18.0 <4.0.0"

packages/video_player/video_player_avfoundation/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.4.5
2+
3+
* Updates functions without a prototype to avoid deprecation warning.
4+
15
## 2.4.4
26

37
* Updates pigeon to fix warnings with clang 15.

packages/video_player/video_player_avfoundation/ios/Classes/FLTVideoPlayerPlugin.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ NS_INLINE CGFloat radiansToDegrees(CGFloat radians) {
146146
return degrees;
147147
};
148148

149-
NS_INLINE UIViewController *rootViewController() {
149+
NS_INLINE UIViewController *rootViewController(void) {
150150
#pragma clang diagnostic push
151151
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
152152
// TODO: (hellohuanlin) Provide a non-deprecated codepath. See

packages/video_player/video_player_avfoundation/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: video_player_avfoundation
22
description: iOS implementation of the video_player plugin.
33
repository: https://github.com/flutter/packages/tree/main/packages/video_player/video_player_avfoundation
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+video_player%22
5-
version: 2.4.4
5+
version: 2.4.5
66

77
environment:
88
sdk: ">=2.18.0 <4.0.0"

0 commit comments

Comments
 (0)