Diff
Modified: trunk/Source/WebKit/gtk/ChangeLog (165809 => 165810)
--- trunk/Source/WebKit/gtk/ChangeLog 2014-03-18 13:44:28 UTC (rev 165809)
+++ trunk/Source/WebKit/gtk/ChangeLog 2014-03-18 14:08:50 UTC (rev 165810)
@@ -1,3 +1,29 @@
+2014-03-18 Jae Hyun Park <[email protected]>
+
+ [GTK][CMake] Fix WebKit unused parameter warnings
+ https://bugs.webkit.org/show_bug.cgi?id=130383
+
+ Reviewed by Martin Robinson.
+
+ * WebCoreSupport/AcceleratedCompositingContextGL.cpp: Fix unused parameters warning.
+ * WebCoreSupport/ChromeClientGtk.cpp: Ditto.
+ * WebCoreSupport/DragClientGtk.cpp: Ditto.
+ * WebCoreSupport/DumpRenderTreeSupportGtk.cpp: Ditto.
+ * WebCoreSupport/EditorClientGtk.cpp: Ditto.
+ * WebCoreSupport/FrameLoaderClientGtk.cpp: Ditto.
+ * WebCoreSupport/InspectorClientGtk.cpp: Ditto.
+ * WebCoreSupport/PlatformStrategiesGtk.cpp: Ditto.
+ * WebCoreSupport/ProgressTrackerClientGtk.cpp: Ditto.
+ * WebCoreSupport/WebViewInputMethodFilter.cpp: Ditto.
+ * webkit/webkitdownload.cpp: Ditto.
+ * webkit/webkitfavicondatabase.cpp: Ditto.
+ * webkit/webkitsoupauthdialog.cpp: Ditto.
+ * webkit/webkitspellchecker.cpp: Ditto.
+ * webkit/webkitspellcheckerenchant.cpp: Ditto.
+ * webkit/webkitwebframe.cpp: Ditto.
+ * webkit/webkitwebinspector.cpp: Ditto.
+ * webkit/webkitwebview.cpp: Ditto.
+
2014-03-14 Maciej Stachowiak <[email protected]>
Replace "Apple Computer, Inc." with "Apple Inc." in copyright headers
Modified: trunk/Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContextGL.cpp (165809 => 165810)
--- trunk/Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContextGL.cpp 2014-03-18 13:44:28 UTC (rev 165809)
+++ trunk/Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContextGL.cpp 2014-03-18 14:08:50 UTC (rev 165810)
@@ -314,7 +314,7 @@
scheduleLayerFlush();
}
-void AcceleratedCompositingContext::scrollNonCompositedContents(const IntRect& scrollRect, const IntSize& scrollOffset)
+void AcceleratedCompositingContext::scrollNonCompositedContents(const IntRect& scrollRect, const IntSize& /* scrollOffset */)
{
m_nonCompositedContentLayer->setNeedsDisplayInRect(scrollRect);
scheduleLayerFlush();
@@ -387,7 +387,7 @@
flushAndRenderLayers();
}
-void AcceleratedCompositingContext::notifyAnimationStarted(const GraphicsLayer*, double time)
+void AcceleratedCompositingContext::notifyAnimationStarted(const GraphicsLayer*, double /* time */)
{
}
Modified: trunk/Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp (165809 => 165810)
--- trunk/Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp 2014-03-18 13:44:28 UTC (rev 165809)
+++ trunk/Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp 2014-03-18 14:08:50 UTC (rev 165810)
@@ -195,7 +195,7 @@
gtk_window_set_focus(GTK_WINDOW(window), NULL);
}
-Page* ChromeClient::createWindow(Frame* frame, const FrameLoadRequest& frameLoadRequest, const WindowFeatures& coreFeatures, const NavigationAction&)
+Page* ChromeClient::createWindow(Frame* frame, const FrameLoadRequest&, const WindowFeatures& coreFeatures, const NavigationAction&)
{
WebKitWebView* webView = 0;
@@ -361,7 +361,7 @@
return runJavaScriptConfirm(frame, message);
}
-void ChromeClient::addMessageToConsole(JSC::MessageSource source, JSC::MessageLevel level, const WTF::String& message, unsigned lineNumber, unsigned columnNumber, const WTF::String& sourceId)
+void ChromeClient::addMessageToConsole(JSC::MessageSource, JSC::MessageLevel, const WTF::String& message, unsigned lineNumber, unsigned /* columnNumber */, const WTF::String& sourceId)
{
gboolean retval;
g_signal_emit_by_name(m_webView, "console-message", message.utf8().data(), lineNumber, sourceId.utf8().data(), &retval);
@@ -668,7 +668,7 @@
invalidateContentsAndRootView(updateRect);
}
-void ChromeClient::scroll(const IntSize& delta, const IntRect& rectToScroll, const IntRect& clipRect)
+void ChromeClient::scroll(const IntSize& delta, const IntRect& rectToScroll, const IntRect& /* clipRect */)
{
m_adjustmentWatcher.updateAdjustmentsFromScrollbarsLater();
@@ -784,7 +784,7 @@
horizontalPolicy, verticalPolicy);
}
-void ChromeClient::mouseDidMoveOverElement(const HitTestResult& hit, unsigned modifierFlags)
+void ChromeClient::mouseDidMoveOverElement(const HitTestResult& hit, unsigned /* modifierFlags */)
{
// check if the element is a link...
bool isLink = hit.isLiveLink();
@@ -840,7 +840,7 @@
}
#endif
-void ChromeClient::reachedMaxAppCacheSize(int64_t spaceNeeded)
+void ChromeClient::reachedMaxAppCacheSize(int64_t /* spaceNeeded */)
{
// FIXME: Free some space.
notImplemented();
@@ -862,7 +862,7 @@
loader->notifyFinished(Icon::createIconForFiles(filenames));
}
-void ChromeClient::dispatchViewportPropertiesDidChange(const ViewportArguments& arguments) const
+void ChromeClient::dispatchViewportPropertiesDidChange(const ViewportArguments&) const
{
// Recompute the viewport attributes making it valid.
webkitViewportAttributesRecompute(webkit_web_view_get_viewport_attributes(m_webView));
@@ -916,12 +916,12 @@
}
#if ENABLE(FULLSCREEN_API)
-bool ChromeClient::supportsFullScreenForElement(const WebCore::Element* element, bool withKeyboard)
+bool ChromeClient::supportsFullScreenForElement(const WebCore::Element*, bool withKeyboard)
{
return !withKeyboard;
}
-static gboolean onFullscreenGtkKeyPressEvent(GtkWidget* widget, GdkEventKey* event, ChromeClient* chromeClient)
+static gboolean onFullscreenGtkKeyPressEvent(GtkWidget*, GdkEventKey* event, ChromeClient* chromeClient)
{
switch (event->keyval) {
case GDK_KEY_Escape:
@@ -989,7 +989,7 @@
}
#endif
-void ChromeClient::attachRootGraphicsLayer(Frame* frame, GraphicsLayer* rootLayer)
+void ChromeClient::attachRootGraphicsLayer(Frame*, GraphicsLayer* rootLayer)
{
AcceleratedCompositingContext* context = m_webView->priv->acceleratedCompositingContext.get();
bool turningOffCompositing = !rootLayer && context->enabled();
Modified: trunk/Source/WebKit/gtk/WebCoreSupport/DragClientGtk.cpp (165809 => 165810)
--- trunk/Source/WebKit/gtk/WebCoreSupport/DragClientGtk.cpp 2014-03-18 13:44:28 UTC (rev 165809)
+++ trunk/Source/WebKit/gtk/WebCoreSupport/DragClientGtk.cpp 2014-03-18 14:08:50 UTC (rev 165810)
@@ -76,7 +76,7 @@
return DragSourceActionAny;
}
-void DragClient::startDrag(DragImageRef image, const IntPoint& dragImageOrigin, const IntPoint& eventPos, Clipboard& clipboard, Frame& frame, bool linkDrag)
+void DragClient::startDrag(DragImageRef image, const IntPoint& dragImageOrigin, const IntPoint& eventPos, Clipboard& clipboard, Frame& frame, bool /* linkDrag */)
{
WebKitWebView* webView = webkit_web_frame_get_web_view(kit(&frame));
RefPtr<DataObjectGtk> dataObject = clipboard.pasteboard().dataObject();
Modified: trunk/Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.cpp (165809 => 165810)
--- trunk/Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.cpp 2014-03-18 13:44:28 UTC (rev 165809)
+++ trunk/Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.cpp 2014-03-18 14:08:50 UTC (rev 165810)
@@ -584,7 +584,7 @@
core(webView)->settings().setCSSGridLayoutEnabled(enabled);
}
-void DumpRenderTreeSupportGtk::setCSSRegionsEnabled(WebKitWebView* webView, bool enabled)
+void DumpRenderTreeSupportGtk::setCSSRegionsEnabled(WebKitWebView*, bool enabled)
{
RuntimeEnabledFeatures::sharedFeatures().setCSSRegionsEnabled(enabled);
}
Modified: trunk/Source/WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp (165809 => 165810)
--- trunk/Source/WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp 2014-03-18 13:44:28 UTC (rev 165809)
+++ trunk/Source/WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp 2014-03-18 14:08:50 UTC (rev 165810)
@@ -204,7 +204,7 @@
}
static WebKitWebView* viewSettingClipboard = 0;
-static void collapseSelection(GtkClipboard* clipboard, WebKitWebView* webView)
+static void collapseSelection(GtkClipboard*, WebKitWebView* webView)
{
if (viewSettingClipboard && viewSettingClipboard == webView)
return;
Modified: trunk/Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp (165809 => 165810)
--- trunk/Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp 2014-03-18 13:44:28 UTC (rev 165809)
+++ trunk/Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp 2014-03-18 14:08:50 UTC (rev 165810)
@@ -226,7 +226,7 @@
}
}
-bool FrameLoaderClient::shouldUseCredentialStorage(WebCore::DocumentLoader*, unsigned long identifier)
+bool FrameLoaderClient::shouldUseCredentialStorage(WebCore::DocumentLoader*, unsigned long /* identifier */)
{
return true;
}
@@ -268,7 +268,7 @@
gtk_widget_show(authDialog);
}
-void FrameLoaderClient::dispatchDidCancelAuthenticationChallenge(WebCore::DocumentLoader*, unsigned long identifier, const AuthenticationChallenge&)
+void FrameLoaderClient::dispatchDidCancelAuthenticationChallenge(WebCore::DocumentLoader*, unsigned long /* identifier */, const AuthenticationChallenge&)
{
notImplemented();
}
@@ -528,8 +528,7 @@
return 0;
}
-PassRefPtr<Frame> FrameLoaderClient::createFrame(const URL& url, const String& name, HTMLFrameOwnerElement* ownerElement,
- const String& referrer, bool allowsScrolling, int marginWidth, int marginHeight)
+PassRefPtr<Frame> FrameLoaderClient::createFrame(const URL& url, const String& name, HTMLFrameOwnerElement* ownerElement, const String& referrer, bool /* allowsScrolling */, int /* marginWidth */, int /* marginHeight */)
{
ASSERT(m_frame);
Frame* parentFrame = core(m_frame);
@@ -919,7 +918,7 @@
return true;
}
-bool FrameLoaderClient::canShowMIMETypeAsHTML(const String& MIMEType) const
+bool FrameLoaderClient::canShowMIMETypeAsHTML(const String& /* MIMEType */) const
{
notImplemented();
return false;
@@ -967,7 +966,7 @@
notImplemented();
}
-void FrameLoaderClient::setTitle(const StringWithDirection& title, const URL& url)
+void FrameLoaderClient::setTitle(const StringWithDirection& title, const URL&)
{
WebKitWebFramePrivate* frameData = m_frame->priv;
g_free(frameData->title);
@@ -1042,7 +1041,7 @@
webkitWebViewRemoveSubresource(webView, identifierString.get());
}
-bool FrameLoaderClient::dispatchDidLoadResourceFromMemoryCache(WebCore::DocumentLoader*, const ResourceRequest&, const ResourceResponse&, int length)
+bool FrameLoaderClient::dispatchDidLoadResourceFromMemoryCache(WebCore::DocumentLoader*, const ResourceRequest&, const ResourceResponse&, int /* length */)
{
notImplemented();
return false;
@@ -1190,7 +1189,7 @@
notImplemented();
}
-void FrameLoaderClient::savePlatformDataToCachedFrame(CachedFrame* cachedFrame)
+void FrameLoaderClient::savePlatformDataToCachedFrame(CachedFrame*)
{
}
@@ -1217,7 +1216,7 @@
void FrameLoaderClient::transitionToCommittedFromCachedFrame(CachedFrame* cachedFrame)
{
- ASSERT(cachedFrame->view());
+ ASSERT_UNUSED(cachedFrame, cachedFrame->view());
Frame* frame = core(m_frame);
if (frame != &frame->page()->mainFrame())
Modified: trunk/Source/WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp (165809 => 165810)
--- trunk/Source/WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp 2014-03-18 13:44:28 UTC (rev 165809)
+++ trunk/Source/WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp 2014-03-18 14:08:50 UTC (rev 165810)
@@ -38,7 +38,7 @@
namespace WebKit {
-static void notifyWebViewDestroyed(WebKitWebView* webView, InspectorFrontendClient* inspectorFrontendClient)
+static void notifyWebViewDestroyed(WebKitWebView*, InspectorFrontendClient* inspectorFrontendClient)
{
inspectorFrontendClient->destroyInspectorWindow(true);
}
@@ -50,13 +50,13 @@
virtual ~InspectorFrontendSettingsGtk() { }
private:
- virtual String getProperty(const String& name)
+ virtual String getProperty(const String& /* name */)
{
notImplemented();
return String();
}
- virtual void setProperty(const String& name, const String& value)
+ virtual void setProperty(const String& /* name */, const String& /* value */)
{
notImplemented();
}
@@ -84,7 +84,7 @@
delete this;
}
-InspectorFrontendChannel* InspectorClient::openInspectorFrontend(InspectorController* controller)
+InspectorFrontendChannel* InspectorClient::openInspectorFrontend(InspectorController*)
{
// This g_object_get will ref the inspector. We're not doing an
// unref if this method succeeds because the inspector object must
@@ -241,17 +241,17 @@
g_signal_emit_by_name(m_webInspector.get(), "detach-window", &handled);
}
-void InspectorFrontendClient::setAttachedWindowHeight(unsigned height)
+void InspectorFrontendClient::setAttachedWindowHeight(unsigned /* height */)
{
notImplemented();
}
-void InspectorFrontendClient::setAttachedWindowWidth(unsigned width)
+void InspectorFrontendClient::setAttachedWindowWidth(unsigned /* width */)
{
notImplemented();
}
-void InspectorFrontendClient::setToolbarHeight(unsigned height)
+void InspectorFrontendClient::setToolbarHeight(unsigned /* height */)
{
notImplemented();
}
Modified: trunk/Source/WebKit/gtk/WebCoreSupport/PlatformStrategiesGtk.cpp (165809 => 165810)
--- trunk/Source/WebKit/gtk/WebCoreSupport/PlatformStrategiesGtk.cpp 2014-03-18 13:44:28 UTC (rev 165809)
+++ trunk/Source/WebKit/gtk/WebCoreSupport/PlatformStrategiesGtk.cpp 2014-03-18 14:08:50 UTC (rev 165810)
@@ -112,7 +112,7 @@
PluginDatabase::installedPlugins()->refresh();
}
-void PlatformStrategiesGtk::getPluginInfo(const Page* page, Vector<PluginInfo>& outPlugins)
+void PlatformStrategiesGtk::getPluginInfo(const Page*, Vector<PluginInfo>& outPlugins)
{
PluginDatabase* database = PluginDatabase::installedPlugins();
const Vector<PluginPackage*> &plugins = database->plugins();
Modified: trunk/Source/WebKit/gtk/WebCoreSupport/ProgressTrackerClientGtk.cpp (165809 => 165810)
--- trunk/Source/WebKit/gtk/WebCoreSupport/ProgressTrackerClientGtk.cpp 2014-03-18 13:44:28 UTC (rev 165809)
+++ trunk/Source/WebKit/gtk/WebCoreSupport/ProgressTrackerClientGtk.cpp 2014-03-18 14:08:50 UTC (rev 165810)
@@ -49,7 +49,7 @@
void ProgressTrackerClient::progressEstimateChanged(WebCore::Frame& originatingProgressFrame)
{
- ASSERT(m_webView == getViewFromFrame(kit(&originatingProgressFrame)));
+ ASSERT_UNUSED(originatingProgressFrame, (m_webView == getViewFromFrame(kit(&originatingProgressFrame))));
WebCore::Page* corePage = core(m_webView);
g_signal_emit_by_name(m_webView, "load-progress-changed", lround(corePage->progress().estimatedProgress()*100));
Modified: trunk/Source/WebKit/gtk/WebCoreSupport/WebViewInputMethodFilter.cpp (165809 => 165810)
--- trunk/Source/WebKit/gtk/WebCoreSupport/WebViewInputMethodFilter.cpp 2014-03-18 13:44:28 UTC (rev 165809)
+++ trunk/Source/WebKit/gtk/WebCoreSupport/WebViewInputMethodFilter.cpp 2014-03-18 14:08:50 UTC (rev 165810)
@@ -102,7 +102,7 @@
frame->editor().cancelComposition();
}
-void WebViewInputMethodFilter::setPreedit(String newPreedit, int cursorOffset)
+void WebViewInputMethodFilter::setPreedit(String newPreedit, int /* cursorOffset */)
{
Frame* frame = focusedOrMainFrame();
if (!frame || !frame->editor().canEdit())
Modified: trunk/Source/WebKit/gtk/webkit/webkitdownload.cpp (165809 => 165810)
--- trunk/Source/WebKit/gtk/webkit/webkitdownload.cpp 2014-03-18 13:44:28 UTC (rev 165809)
+++ trunk/Source/WebKit/gtk/webkit/webkitdownload.cpp 2014-03-18 14:08:50 UTC (rev 165810)
@@ -943,12 +943,12 @@
}
}
-void DownloadClient::didReceiveData(ResourceHandle*, const char* data, unsigned length, int encodedDataLength)
+void DownloadClient::didReceiveData(ResourceHandle*, const char* /* data */, unsigned /* length */, int /* encodedDataLength */)
{
ASSERT_NOT_REACHED();
}
-void DownloadClient::didReceiveBuffer(ResourceHandle*, PassRefPtr<SharedBuffer> buffer, int encodedLength)
+void DownloadClient::didReceiveBuffer(ResourceHandle*, PassRefPtr<SharedBuffer> buffer, int /* encodedLength */)
{
// This pattern is suggested by SharedBuffer.h.
const char* segment;
Modified: trunk/Source/WebKit/gtk/webkit/webkitfavicondatabase.cpp (165809 => 165810)
--- trunk/Source/WebKit/gtk/webkit/webkitfavicondatabase.cpp 2014-03-18 13:44:28 UTC (rev 165809)
+++ trunk/Source/WebKit/gtk/webkit/webkitfavicondatabase.cpp 2014-03-18 14:08:50 UTC (rev 165810)
@@ -82,7 +82,7 @@
// Called when an icon is requested while the initial import is
// going on.
- virtual void didImportIconURLForPageURL(const String& URL) { };
+ virtual void didImportIconURLForPageURL(const String& /* URL */) { };
// Called whenever a retained icon is read from database.
virtual void didImportIconDataForPageURL(const String& URL)
@@ -96,7 +96,7 @@
webkitFaviconDatabaseProcessPendingIconsForURI(database, URL);
}
- virtual void didChangeIconForPageURL(const String& URL)
+ virtual void didChangeIconForPageURL(const String& /* URL */)
{
// Called when the the favicon for a particular URL changes.
// It does not mean that the new icon data is available yet.
@@ -315,7 +315,7 @@
return database->priv->path.get();
}
-static void webkitFaviconDatabaseClose(WebKitFaviconDatabase* database)
+static void webkitFaviconDatabaseClose(WebKitFaviconDatabase*)
{
if (iconDatabase().isEnabled()) {
iconDatabase().setEnabled(false);
@@ -386,7 +386,7 @@
return g_strdup(iconURI.utf8().data());
}
-static GdkPixbuf* getIconPixbufSynchronously(WebKitFaviconDatabase* database, const String& pageURL, const IntSize& iconSize)
+static GdkPixbuf* getIconPixbufSynchronously(WebKitFaviconDatabase*, const String& pageURL, const IntSize& iconSize)
{
ASSERT(isMainThread());
@@ -484,7 +484,7 @@
webkitfavicondatabaseDeleteRequests(database, icons, pageURL);
}
-static void webkitFaviconDatabaseGetIconPixbufCancelled(GCancellable* cancellable, PendingIconRequest* request)
+static void webkitFaviconDatabaseGetIconPixbufCancelled(GCancellable*, PendingIconRequest* request)
{
// Handle cancelled in a in idle since it might be called from any thread.
callOnMainThread(getIconPixbufCancelled, request);
@@ -573,7 +573,7 @@
*
* Since: 1.8
*/
-GdkPixbuf* webkit_favicon_database_get_favicon_pixbuf_finish(WebKitFaviconDatabase* database, GAsyncResult* result, GError** error)
+GdkPixbuf* webkit_favicon_database_get_favicon_pixbuf_finish(WebKitFaviconDatabase*, GAsyncResult* result, GError** error)
{
GSimpleAsyncResult* simpleResult = G_SIMPLE_ASYNC_RESULT(result);
g_return_val_if_fail(g_simple_async_result_get_source_tag(simpleResult) == webkit_favicon_database_get_favicon_pixbuf, 0);
Modified: trunk/Source/WebKit/gtk/webkit/webkitsoupauthdialog.cpp (165809 => 165810)
--- trunk/Source/WebKit/gtk/webkit/webkitsoupauthdialog.cpp 2014-03-18 13:44:28 UTC (rev 165809)
+++ trunk/Source/WebKit/gtk/webkit/webkitsoupauthdialog.cpp 2014-03-18 14:08:50 UTC (rev 165810)
@@ -46,7 +46,7 @@
using RefCounted<WebKitSoupAuthDialogAuthenticationClient>::ref;
using RefCounted<WebKitSoupAuthDialogAuthenticationClient>::deref;
public:
- virtual void didReceiveAuthenticationChallenge(const AuthenticationChallenge& challenge)
+ virtual void didReceiveAuthenticationChallenge(const AuthenticationChallenge&)
{
}
Modified: trunk/Source/WebKit/gtk/webkit/webkitspellchecker.cpp (165809 => 165810)
--- trunk/Source/WebKit/gtk/webkit/webkitspellchecker.cpp 2014-03-18 13:44:28 UTC (rev 165809)
+++ trunk/Source/WebKit/gtk/webkit/webkitspellchecker.cpp 2014-03-18 14:08:50 UTC (rev 165810)
@@ -32,7 +32,7 @@
G_DEFINE_INTERFACE(WebKitSpellChecker, webkit_spell_checker, G_TYPE_OBJECT);
-static void webkit_spell_checker_default_init(WebKitSpellCheckerInterface* interface)
+static void webkit_spell_checker_default_init(WebKitSpellCheckerInterface*)
{
}
Modified: trunk/Source/WebKit/gtk/webkit/webkitspellcheckerenchant.cpp (165809 => 165810)
--- trunk/Source/WebKit/gtk/webkit/webkitspellcheckerenchant.cpp 2014-03-18 13:44:28 UTC (rev 165809)
+++ trunk/Source/WebKit/gtk/webkit/webkitspellcheckerenchant.cpp 2014-03-18 14:08:50 UTC (rev 165810)
@@ -76,7 +76,7 @@
priv->textCheckerEnchant->checkSpellingOfString(String::fromUTF8(string), *misspellingLocation, *misspellingLength);
}
-static char** getGuessesForWord(WebKitSpellChecker* checker, const char* word, const char* context)
+static char** getGuessesForWord(WebKitSpellChecker* checker, const char* word, const char* /* context */)
{
WebKitSpellCheckerEnchantPrivate* priv = WEBKIT_SPELL_CHECKER_ENCHANT(checker)->priv;
@@ -104,7 +104,7 @@
priv->textCheckerEnchant->updateSpellCheckingLanguages(languagesVector);
}
-static char* getAutocorrectSuggestionsForMisspelledWord(WebKitSpellChecker* checker, const char* word)
+static char* getAutocorrectSuggestionsForMisspelledWord(WebKitSpellChecker*, const char* /* word */)
{
return 0;
}
Modified: trunk/Source/WebKit/gtk/webkit/webkitwebframe.cpp (165809 => 165810)
--- trunk/Source/WebKit/gtk/webkit/webkitwebframe.cpp 2014-03-18 13:44:28 UTC (rev 165809)
+++ trunk/Source/WebKit/gtk/webkit/webkitwebframe.cpp 2014-03-18 14:08:50 UTC (rev 165810)
@@ -921,7 +921,7 @@
corePrintContext->spoolPage(graphicsContext, pageNumber, pageWidth);
}
-static void end_print_callback(GtkPrintOperation* op, GtkPrintContext* context, gpointer user_data)
+static void end_print_callback(GtkPrintOperation*, GtkPrintContext*, gpointer user_data)
{
PrintContext* printContext = reinterpret_cast<PrintContext*>(user_data);
printContext->end();
Modified: trunk/Source/WebKit/gtk/webkit/webkitwebinspector.cpp (165809 => 165810)
--- trunk/Source/WebKit/gtk/webkit/webkitwebinspector.cpp 2014-03-18 13:44:28 UTC (rev 165809)
+++ trunk/Source/WebKit/gtk/webkit/webkitwebinspector.cpp 2014-03-18 14:08:50 UTC (rev 165810)
@@ -107,7 +107,7 @@
static void webkit_web_inspector_get_property(GObject* object, guint prop_id, GValue* value, GParamSpec* pspec);
-static gboolean webkit_inspect_web_view_request_handled(GSignalInvocationHint* ihint, GValue* returnAccu, const GValue* handlerReturn, gpointer dummy)
+static gboolean webkit_inspect_web_view_request_handled(GSignalInvocationHint*, GValue* returnAccu, const GValue* handlerReturn, gpointer)
{
gboolean continueEmission = TRUE;
gpointer newWebView = g_value_get_object(handlerReturn);
Modified: trunk/Source/WebKit/gtk/webkit/webkitwebview.cpp (165809 => 165810)
--- trunk/Source/WebKit/gtk/webkit/webkitwebview.cpp 2014-03-18 13:44:28 UTC (rev 165809)
+++ trunk/Source/WebKit/gtk/webkit/webkitwebview.cpp 2014-03-18 14:08:50 UTC (rev 165810)
@@ -1128,7 +1128,7 @@
return WEBKIT_NAVIGATION_RESPONSE_ACCEPT;
}
-static void webkit_web_view_real_window_object_cleared(WebKitWebView*, WebKitWebFrame*, JSGlobalContextRef context, JSObjectRef window_object)
+static void webkit_web_view_real_window_object_cleared(WebKitWebView*, WebKitWebFrame*, JSGlobalContextRef, JSObjectRef)
{
notImplemented();
}
@@ -1232,7 +1232,7 @@
return TRUE;
}
-static gboolean webkit_web_view_real_console_message(WebKitWebView* webView, const gchar* message, unsigned int line, const gchar* sourceId)
+static gboolean webkit_web_view_real_console_message(WebKitWebView*, const gchar* message, unsigned line, const gchar* sourceId)
{
g_message("console message: %s @%d: %s\n", sourceId, line, message);
return TRUE;
@@ -1332,12 +1332,12 @@
return TRUE;
}
-static gboolean webkit_web_view_real_entering_fullscreen(WebKitWebView* webView)
+static gboolean webkit_web_view_real_entering_fullscreen(WebKitWebView*)
{
return FALSE;
}
-static gboolean webkit_web_view_real_leaving_fullscreen(WebKitWebView* webView)
+static gboolean webkit_web_view_real_leaving_fullscreen(WebKitWebView*)
{
return FALSE;
}
@@ -1440,7 +1440,7 @@
G_OBJECT_CLASS(webkit_web_view_parent_class)->finalize(object);
}
-static gboolean webkit_signal_accumulator_object_handled(GSignalInvocationHint* ihint, GValue* returnAccu, const GValue* handlerReturn, gpointer dummy)
+static gboolean webkit_signal_accumulator_object_handled(GSignalInvocationHint*, GValue* returnAccu, const GValue* handlerReturn, gpointer)
{
gpointer newWebView = g_value_get_object(handlerReturn);
g_value_set_object(returnAccu, newWebView);
@@ -1449,7 +1449,7 @@
return !newWebView;
}
-static gboolean webkit_navigation_request_handled(GSignalInvocationHint* ihint, GValue* returnAccu, const GValue* handlerReturn, gpointer dummy)
+static gboolean webkit_navigation_request_handled(GSignalInvocationHint*, GValue* returnAccu, const GValue* handlerReturn, gpointer)
{
WebKitNavigationResponse navigationResponse = (WebKitNavigationResponse)g_value_get_enum(handlerReturn);
g_value_set_enum(returnAccu, navigationResponse);
@@ -1522,7 +1522,7 @@
return fontSize / 72.0 * webViewGetDPI(webView);
}
-static void webkit_web_view_screen_changed(GtkWidget* widget, GdkScreen* previousScreen)
+static void webkit_web_view_screen_changed(GtkWidget* widget, GdkScreen*)
{
WebKitWebView* webView = WEBKIT_WEB_VIEW(widget);
WebKitWebViewPrivate* priv = webView->priv;
@@ -1596,7 +1596,7 @@
core(WEBKIT_WEB_VIEW(widget))->dragController().dragEnded();
}
-static void webkit_web_view_drag_leave(GtkWidget* widget, GdkDragContext* context, guint time)
+static void webkit_web_view_drag_leave(GtkWidget* widget, GdkDragContext* context, guint /* time */)
{
WEBKIT_WEB_VIEW(widget)->priv->dragAndDropHelper.handleDragLeave(context, dragExitedCallback);
}
@@ -1615,7 +1615,7 @@
return TRUE;
}
-static void webkit_web_view_drag_data_received(GtkWidget* widget, GdkDragContext* context, gint x, gint y, GtkSelectionData* selectionData, guint info, guint time)
+static void webkit_web_view_drag_data_received(GtkWidget* widget, GdkDragContext* context, gint /* x */, gint /* y */, GtkSelectionData* selectionData, guint info, guint time)
{
WebKitWebView* webView = WEBKIT_WEB_VIEW(widget);
IntPoint position;
@@ -1643,7 +1643,7 @@
}
#endif // ENABLE(DRAG_SUPPORT)
-static gboolean webkit_web_view_query_tooltip(GtkWidget *widget, gint x, gint y, gboolean keyboard_mode, GtkTooltip *tooltip)
+static gboolean webkit_web_view_query_tooltip(GtkWidget *widget, gint /* x */, gint /* y */, gboolean keyboard_mode, GtkTooltip *tooltip)
{
WebKitWebViewPrivate* priv = WEBKIT_WEB_VIEW(widget)->priv;
@@ -5235,7 +5235,7 @@
* Since: 1.1.14
* Deprecated: 2.6
*/
-void webkit_web_view_set_view_source_mode (WebKitWebView* webView, gboolean mode)
+void webkit_web_view_set_view_source_mode (WebKitWebView* webView, gboolean /* mode */)
{
g_return_if_fail(WEBKIT_IS_WEB_VIEW(webView));
@@ -5544,7 +5544,7 @@
}
#if ENABLE(ICONDATABASE)
-void webkitWebViewIconLoaded(WebKitFaviconDatabase* database, const char* frameURI, WebKitWebView* webView)
+void webkitWebViewIconLoaded(WebKitFaviconDatabase*, const char* /* frameURI */, WebKitWebView* webView)
{
// Since we definitely have an icon the WebView doesn't need to
// listen for notifications any longer.
@@ -5568,7 +5568,7 @@
}
#endif
-void webkitWebViewDirectionChanged(WebKitWebView* webView, GtkTextDirection previousDirection, gpointer)
+void webkitWebViewDirectionChanged(WebKitWebView* webView, GtkTextDirection, gpointer)
{
g_return_if_fail(WEBKIT_IS_WEB_VIEW(webView));