Modified: trunk/Source/WebKit/efl/ChangeLog (137687 => 137688)
--- trunk/Source/WebKit/efl/ChangeLog 2012-12-14 01:10:28 UTC (rev 137687)
+++ trunk/Source/WebKit/efl/ChangeLog 2012-12-14 01:15:08 UTC (rev 137688)
@@ -1,3 +1,16 @@
+2012-12-13 Seokju Kwon <[email protected]>
+
+ Fix unused parameter compile warnings
+ https://bugs.webkit.org/show_bug.cgi?id=104907
+
+ Reviewed by Kentaro Hara.
+
+ Use UNUSED_PARAM macro to fix build warning -Wunused-parameter
+ when ENABLE_INSPECTOR is disabled.
+
+ * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
+ (DumpRenderTreeSupportEfl::evaluateInWebInspector):
+
2012-12-13 Jussi Kukkonen <[email protected]>
[EFL][GTK] Don't call deprecated g_type_init when glib => 2.35
Modified: trunk/Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp (137687 => 137688)
--- trunk/Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp 2012-12-14 01:10:28 UTC (rev 137687)
+++ trunk/Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp 2012-12-14 01:15:08 UTC (rev 137688)
@@ -62,6 +62,7 @@
#include <history/HistoryItem.h>
#include <workers/WorkerThread.h>
#include <wtf/HashMap.h>
+#include <wtf/UnusedParam.h>
#if ENABLE(GEOLOCATION)
#include <GeolocationClientMock.h>
@@ -525,6 +526,10 @@
if (page->inspectorController())
page->inspectorController()->evaluateForTestInFrontend(callId, script);
+#else
+ UNUSED_PARAM(ewkView);
+ UNUSED_PARAM(callId);
+ UNUSED_PARAM(script);
#endif
}
Modified: trunk/Source/WebKit2/ChangeLog (137687 => 137688)
--- trunk/Source/WebKit2/ChangeLog 2012-12-14 01:10:28 UTC (rev 137687)
+++ trunk/Source/WebKit2/ChangeLog 2012-12-14 01:15:08 UTC (rev 137688)
@@ -1,5 +1,36 @@
2012-12-13 Seokju Kwon <[email protected]>
+ Fix unused parameter compile warnings
+ https://bugs.webkit.org/show_bug.cgi?id=104907
+
+ Reviewed by Kentaro Hara.
+
+ Use UNUSED_PARAM macro to fix build warning -Wunused-parameter
+ when ENABLE_INSPECTOR is disabled.
+
+ * UIProcess/API/C/WKInspector.cpp:
+ (WKInspectorGetPage):
+ (WKInspectorIsVisible):
+ (WKInspectorIsFront):
+ (WKInspectorShow):
+ (WKInspectorClose):
+ (WKInspectorShowConsole):
+ (WKInspectorShowResources):
+ (WKInspectorShowMainResourceForFrame):
+ (WKInspectorIsAttached):
+ (WKInspectorAttach):
+ (WKInspectorDetach):
+ (WKInspectorIsDebuggingJavaScript):
+ (WKInspectorToggleJavaScriptDebugging):
+ (WKInspectorIsProfilingJavaScript):
+ (WKInspectorToggleJavaScriptProfiling):
+ (WKInspectorIsProfilingPage):
+ (WKInspectorTogglePageProfiling):
+ * UIProcess/API/C/WKPage.cpp:
+ (WKPageGetInspector):
+
+2012-12-13 Seokju Kwon <[email protected]>
+
[QT][GTK][EFL] Add guard for WebInspectorServer
https://bugs.webkit.org/show_bug.cgi?id=104889
Modified: trunk/Source/WebKit2/UIProcess/API/C/WKInspector.cpp (137687 => 137688)
--- trunk/Source/WebKit2/UIProcess/API/C/WKInspector.cpp 2012-12-14 01:10:28 UTC (rev 137687)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKInspector.cpp 2012-12-14 01:15:08 UTC (rev 137688)
@@ -28,6 +28,7 @@
#include "WKAPICast.h"
#include "WebInspectorProxy.h"
+#include <wtf/UnusedParam.h>
using namespace WebKit;
@@ -45,6 +46,7 @@
#if ENABLE(INSPECTOR)
return toAPI(toImpl(inspectorRef)->page());
#else
+ UNUSED_PARAM(inspectorRef);
return 0;
#endif
}
@@ -54,6 +56,7 @@
#if ENABLE(INSPECTOR)
return toImpl(inspectorRef)->isVisible();
#else
+ UNUSED_PARAM(inspectorRef);
return false;
#endif
}
@@ -63,6 +66,7 @@
#if ENABLE(INSPECTOR)
return toImpl(inspectorRef)->isFront();
#else
+ UNUSED_PARAM(inspectorRef);
return false;
#endif
}
@@ -71,6 +75,8 @@
{
#if ENABLE(INSPECTOR)
toImpl(inspectorRef)->show();
+#else
+ UNUSED_PARAM(inspectorRef);
#endif
}
@@ -78,6 +84,8 @@
{
#if ENABLE(INSPECTOR)
toImpl(inspectorRef)->close();
+#else
+ UNUSED_PARAM(inspectorRef);
#endif
}
@@ -85,6 +93,8 @@
{
#if ENABLE(INSPECTOR)
toImpl(inspectorRef)->showConsole();
+#else
+ UNUSED_PARAM(inspectorRef);
#endif
}
@@ -92,6 +102,8 @@
{
#if ENABLE(INSPECTOR)
toImpl(inspectorRef)->showResources();
+#else
+ UNUSED_PARAM(inspectorRef);
#endif
}
@@ -99,6 +111,9 @@
{
#if ENABLE(INSPECTOR)
toImpl(inspectorRef)->showMainResourceForFrame(toImpl(frameRef));
+#else
+ UNUSED_PARAM(inspectorRef);
+ UNUSED_PARAM(frameRef);
#endif
}
@@ -107,6 +122,7 @@
#if ENABLE(INSPECTOR)
return toImpl(inspectorRef)->isAttached();
#else
+ UNUSED_PARAM(inspectorRef);
return false;
#endif
}
@@ -115,6 +131,8 @@
{
#if ENABLE(INSPECTOR)
toImpl(inspectorRef)->attach();
+#else
+ UNUSED_PARAM(inspectorRef);
#endif
}
@@ -122,6 +140,8 @@
{
#if ENABLE(INSPECTOR)
toImpl(inspectorRef)->detach();
+#else
+ UNUSED_PARAM(inspectorRef);
#endif
}
@@ -130,6 +150,7 @@
#if ENABLE(INSPECTOR)
return toImpl(inspectorRef)->isDebuggingJavaScript();
#else
+ UNUSED_PARAM(inspectorRef);
return false;
#endif
}
@@ -138,6 +159,8 @@
{
#if ENABLE(INSPECTOR)
toImpl(inspectorRef)->toggleJavaScriptDebugging();
+#else
+ UNUSED_PARAM(inspectorRef);
#endif
}
@@ -146,6 +169,7 @@
#if ENABLE(INSPECTOR)
return toImpl(inspectorRef)->isProfilingJavaScript();
#else
+ UNUSED_PARAM(inspectorRef);
return false;
#endif
}
@@ -154,6 +178,8 @@
{
#if ENABLE(INSPECTOR)
toImpl(inspectorRef)->toggleJavaScriptProfiling();
+#else
+ UNUSED_PARAM(inspectorRef);
#endif
}
@@ -162,6 +188,7 @@
#if ENABLE(INSPECTOR)
return toImpl(inspectorRef)->isProfilingPage();
#else
+ UNUSED_PARAM(inspectorRef);
return false;
#endif
}
@@ -170,5 +197,7 @@
{
#if ENABLE(INSPECTOR)
toImpl(inspectorRef)->togglePageProfiling();
+#else
+ UNUSED_PARAM(inspectorRef);
#endif
}
Modified: trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp (137687 => 137688)
--- trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp 2012-12-14 01:10:28 UTC (rev 137687)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp 2012-12-14 01:15:08 UTC (rev 137688)
@@ -34,6 +34,7 @@
#include "WebPageProxy.h"
#include "WebProcessProxy.h"
#include <WebCore/Page.h>
+#include <wtf/UnusedParam.h>
#ifdef __BLOCKS__
#include <Block.h>
@@ -187,6 +188,7 @@
#if defined(ENABLE_INSPECTOR) && ENABLE_INSPECTOR
return toAPI(toImpl(pageRef)->inspector());
#else
+ UNUSED_PARAM(pageRef);
return 0;
#endif
}