BUILD FIX: Unused variable with ENABLE(CONTEXT_MENUS) off
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Jun 2012 18:01:21 +0000 (18:01 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Jun 2012 18:01:21 +0000 (18:01 +0000)
This broke in r118374.

* bindings/js/JSInspectorFrontendHostCustom.cpp:
(WebCore::JSInspectorFrontendHost::showContextMenu): Add
UNUSED_PARAM(exec) when ENABLE(CONTEXT_MENUS) is off.

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

Source/WebCore/ChangeLog
Source/WebCore/bindings/js/JSInspectorFrontendHostCustom.cpp

index e933261..e9d61c3 100644 (file)
@@ -1,3 +1,13 @@
+2012-06-04  David Kilzer  <ddkilzer@apple.com>
+
+        BUILD FIX: Unused variable with ENABLE(CONTEXT_MENUS) off
+
+        This broke in r118374.
+
+        * bindings/js/JSInspectorFrontendHostCustom.cpp:
+        (WebCore::JSInspectorFrontendHost::showContextMenu): Add
+        UNUSED_PARAM(exec) when ENABLE(CONTEXT_MENUS) is off.
+
 2012-06-04  Sheriff Bot  <webkit.review.bot@gmail.com>
 
         Unreviewed, rolling out r119393.
index 3c71994..7c49450 100644 (file)
@@ -144,6 +144,8 @@ JSValue JSInspectorFrontendHost::showContextMenu(ExecState* exec)
     Vector<ContextMenuItem> items = menu.items();
 #endif
     impl()->showContextMenu(event, items);
+#else
+    UNUSED_PARAM(exec);
 #endif
     return jsUndefined();
 }