From d70dad508f0be367685b4ffe5f6e135539d278cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mattias=20Engdeg=C3=A5rd?= Date: Mon, 5 Aug 2024 21:27:17 +0200 Subject: [PATCH] Avoid warning when building on macOS versions < 14 (bug#72440) * src/nsterm.m ([EmacsView initFrameFromEmacs:]): The clipsToBounds property of NSView is only public from macOS 14 on. (cherry picked from commit ee371f55b359b509cd381c87e78b5f5ee9311f37) --- src/nsterm.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/nsterm.m b/src/nsterm.m index be9142f7a4a..5c2e6446f7e 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -8073,9 +8073,10 @@ ns_in_echo_area (void) #ifdef NS_IMPL_COCOA old_title = 0; maximizing_resize = NO; +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 140000 /* Restore to default before macOS 14 (bug#72440). */ - if ([self respondsToSelector:@selector(setClipsToBounds:)]) - [self setClipsToBounds: YES]; + [self setClipsToBounds: YES]; +#endif #endif #if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MIN_REQUIRED >= 101400 -- 2.39.2