Fix potential build error in GPUDevice
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Feb 2019 21:48:01 +0000 (21:48 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Feb 2019 21:48:01 +0000 (21:48 +0000)
https://bugs.webkit.org/show_bug.cgi?id=194359

Reviewed by Joseph Pecoraro.

Add an UNUSED_PARAM for non-macOS platforms.

* platform/graphics/gpu/cocoa/GPUDeviceMetal.mm:
(WebCore::GPUDevice::create):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/gpu/cocoa/GPUDeviceMetal.mm

index 05cd8ae..7a9fcd5 100644 (file)
@@ -1,3 +1,15 @@
+2019-02-06  Dean Jackson  <dino@apple.com>
+
+        Fix potential build error in GPUDevice
+        https://bugs.webkit.org/show_bug.cgi?id=194359
+
+        Reviewed by Joseph Pecoraro.
+
+        Add an UNUSED_PARAM for non-macOS platforms.
+
+        * platform/graphics/gpu/cocoa/GPUDeviceMetal.mm:
+        (WebCore::GPUDevice::create):
+
 2019-02-06  Daniel Bates  <dabates@apple.com>
 
         Standardize on ControlKey instead of CtrlKey
index c76ec8b..f275a6c 100644 (file)
@@ -53,9 +53,10 @@ RefPtr<GPUDevice> GPUDevice::create(Optional<GPURequestAdapterOptions>&& options
             }
         }
     }
-    
-    if (!devicePtr)
+#else
+    UNUSED_PARAM(options);
 #endif // PLATFORM(MAC)
+    if (!devicePtr)
         devicePtr = adoptNS(MTLCreateSystemDefaultDevice());
 
     END_BLOCK_OBJC_EXCEPTIONS;