Fix compilation warnings in macOS build, enable warnings=extra werror=yes for macOS CI.
This commit is contained in:
@@ -79,8 +79,6 @@
|
||||
@property(strong, nonatomic) AVPlayer *avPlayer;
|
||||
@property(strong, nonatomic) AVPlayerLayer *avPlayerLayer;
|
||||
|
||||
// Old videoplayer properties
|
||||
@property(strong, nonatomic) MPMoviePlayerController *moviePlayerController;
|
||||
@property(strong, nonatomic) UIWindow *backgroundWindow;
|
||||
|
||||
@property(nonatomic) UITextAutocorrectionType autocorrectionType;
|
||||
|
||||
@@ -729,40 +729,4 @@ static void clear_touches() {
|
||||
_stop_video();
|
||||
}
|
||||
|
||||
/*
|
||||
- (void)moviePlayBackDidFinish:(NSNotification*)notification {
|
||||
|
||||
|
||||
NSNumber* reason = [[notification userInfo] objectForKey:MPMoviePlayerPlaybackDidFinishReasonUserInfoKey];
|
||||
switch ([reason intValue]) {
|
||||
case MPMovieFinishReasonPlaybackEnded:
|
||||
//NSLog(@"Playback Ended");
|
||||
break;
|
||||
case MPMovieFinishReasonPlaybackError:
|
||||
//NSLog(@"Playback Error");
|
||||
video_found_error = true;
|
||||
break;
|
||||
case MPMovieFinishReasonUserExited:
|
||||
//NSLog(@"User Exited");
|
||||
video_found_error = true;
|
||||
break;
|
||||
default:
|
||||
//NSLog(@"Unsupported reason!");
|
||||
break;
|
||||
}
|
||||
|
||||
MPMoviePlayerController *player = [notification object];
|
||||
|
||||
[[NSNotificationCenter defaultCenter]
|
||||
removeObserver:self
|
||||
name:MPMoviePlayerPlaybackDidFinishNotification
|
||||
object:player];
|
||||
|
||||
[_instance.moviePlayerController stop];
|
||||
[_instance.moviePlayerController.view removeFromSuperview];
|
||||
|
||||
video_playing = false;
|
||||
}
|
||||
*/
|
||||
|
||||
@end
|
||||
|
||||
@@ -47,7 +47,7 @@ int iphone_main(int, int, int, char **, String);
|
||||
|
||||
int iphone_main(int width, int height, int argc, char **argv, String data_dir) {
|
||||
|
||||
int len = strlen(argv[0]);
|
||||
size_t len = strlen(argv[0]);
|
||||
|
||||
while (len--) {
|
||||
if (argv[0][len] == '/') break;
|
||||
|
||||
@@ -92,7 +92,7 @@ void InAppStore::_bind_methods() {
|
||||
PoolStringArray localized_prices;
|
||||
PoolStringArray currency_codes;
|
||||
|
||||
for (int i = 0; i < [products count]; i++) {
|
||||
for (NSUInteger i = 0; i < [products count]; i++) {
|
||||
|
||||
SKProduct *product = [products objectAtIndex:i];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user