diff --git a/audio/out/ao_coreaudio_chmap.c b/audio/out/ao_coreaudio_chmap.c index 3fd95503c99b9..c1cae0cc40aa5 100644 --- a/audio/out/ao_coreaudio_chmap.c +++ b/audio/out/ao_coreaudio_chmap.c @@ -241,7 +241,7 @@ static AudioChannelLayout* ca_query_stereo_layout(struct ao *ao, void *talloc_ctx) { OSStatus err; - const int nch = 2; + static const int nch = 2; uint32_t channels[nch]; AudioChannelLayout *r = NULL; diff --git a/audio/out/ao_coreaudio_utils.c b/audio/out/ao_coreaudio_utils.c index 14db8e39cd98b..978165d652185 100644 --- a/audio/out/ao_coreaudio_utils.c +++ b/audio/out/ao_coreaudio_utils.c @@ -470,7 +470,7 @@ bool ca_change_physical_format_sync(struct ao *ao, AudioStreamID stream, ca_print_asbd(ao, "setting stream physical format:", &change_format); - sem_t wakeup; + mp_sem_t wakeup; if (mp_sem_init(&wakeup, 0, 0)) { MP_WARN(ao, "OOM\n"); return false; diff --git a/osdep/macosx_events.m b/osdep/macosx_events.m index 627077aac1967..33ea265797b1e 100644 --- a/osdep/macosx_events.m +++ b/osdep/macosx_events.m @@ -292,6 +292,8 @@ -(void)processEvent:(struct mpv_event *)event _ctx = nil; break; } + default: + break; } } diff --git a/osdep/macosx_touchbar.m b/osdep/macosx_touchbar.m index ccce8f773df54..d70324bd1c5e2 100644 --- a/osdep/macosx_touchbar.m +++ b/osdep/macosx_touchbar.m @@ -307,6 +307,8 @@ - (void)processEvent:(struct mpv_event *)event [self handlePropertyChange:(mpv_event_property *)event->data]; break; } + default: + break; } }