From ab8cc64b195559caf22710d73f4fb4c82702b2f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Thu, 23 Nov 2023 11:20:50 +0100 Subject: [PATCH] osdep/macosx: add default switch cases to suppress Wswitch --- osdep/macosx_events.m | 2 ++ osdep/macosx_touchbar.m | 2 ++ 2 files changed, 4 insertions(+) diff --git a/osdep/macosx_events.m b/osdep/macosx_events.m index 627077aac1..33ea265797 100644 --- a/osdep/macosx_events.m +++ b/osdep/macosx_events.m @@ -292,6 +292,8 @@ void cocoa_set_mpv_handle(struct mpv_handle *ctx) _ctx = nil; break; } + default: + break; } } diff --git a/osdep/macosx_touchbar.m b/osdep/macosx_touchbar.m index ccce8f773d..d70324bd1c 100644 --- a/osdep/macosx_touchbar.m +++ b/osdep/macosx_touchbar.m @@ -307,6 +307,8 @@ [self handlePropertyChange:(mpv_event_property *)event->data]; break; } + default: + break; } }