Tried to fix 32-bit macOS builds after r236846.
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Oct 2018 20:47:32 +0000 (20:47 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Oct 2018 20:47:32 +0000 (20:47 +0000)
* Carbon/HIWebView.mm:
(_NSSelectorForHICommand):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236847 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKitLegacy/mac/Carbon/HIWebView.mm
Source/WebKitLegacy/mac/ChangeLog

index 07aff9c..b5c7f1c 100644 (file)
@@ -34,6 +34,7 @@
 #import "HIViewAdapter.h"
 #import "WebHTMLViewInternal.h"
 #import "WebKit.h"
+#import <AppKit/NSControl.h>
 #import <pal/spi/mac/NSEventSPI.h>
 #import <pal/spi/mac/NSGraphicsSPI.h>
 #import <pal/spi/mac/QuickDrawSPI.h>
@@ -1161,6 +1162,7 @@ UpdateCommandStatus(HIWebView* inView, const HICommand* inCommand)
 //
 static SEL _NSSelectorForHICommand(const HICommand* inCommand)
 {
+IGNORE_WARNINGS_BEGIN("undeclared-selector")
     switch (inCommand->commandID) {
     case kHICommandUndo:
         return @selector(undo:);
@@ -1179,6 +1181,7 @@ static SEL _NSSelectorForHICommand(const HICommand* inCommand)
     default:
         return nullptr;
     }
+IGNORE_WARNINGS_END
 
     return nullptr;
 }
index a5b5a18..4dca878 100644 (file)
@@ -1,5 +1,12 @@
 2018-10-04  Dan Bernstein  <mitz@apple.com>
 
+        Tried to fix 32-bit macOS builds after r236846.
+
+        * Carbon/HIWebView.mm:
+        (_NSSelectorForHICommand):
+
+2018-10-04  Dan Bernstein  <mitz@apple.com>
+
         WebKitLegacy part of [Xcode] Update some build settings as recommended by Xcode 10
         https://bugs.webkit.org/show_bug.cgi?id=190250