[GTK][CMake] Fix WebKit unused parameter warnings
authorjaepark@webkit.org <jaepark@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Mar 2014 14:08:50 +0000 (14:08 +0000)
committerjaepark@webkit.org <jaepark@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Mar 2014 14:08:50 +0000 (14:08 +0000)
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.

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

19 files changed:
Source/WebKit/gtk/ChangeLog
Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContextGL.cpp
Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp
Source/WebKit/gtk/WebCoreSupport/DragClientGtk.cpp
Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.cpp
Source/WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp
Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp
Source/WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp
Source/WebKit/gtk/WebCoreSupport/PlatformStrategiesGtk.cpp
Source/WebKit/gtk/WebCoreSupport/ProgressTrackerClientGtk.cpp
Source/WebKit/gtk/WebCoreSupport/WebViewInputMethodFilter.cpp
Source/WebKit/gtk/webkit/webkitdownload.cpp
Source/WebKit/gtk/webkit/webkitfavicondatabase.cpp
Source/WebKit/gtk/webkit/webkitsoupauthdialog.cpp
Source/WebKit/gtk/webkit/webkitspellchecker.cpp
Source/WebKit/gtk/webkit/webkitspellcheckerenchant.cpp
Source/WebKit/gtk/webkit/webkitwebframe.cpp
Source/WebKit/gtk/webkit/webkitwebinspector.cpp
Source/WebKit/gtk/webkit/webkitwebview.cpp

index bc31e82..af3d0ef 100644 (file)
@@ -1,3 +1,29 @@
+2014-03-18  Jae Hyun Park  <jaepark@webkit.org>
+
+        [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  <mjs@apple.com>
 
         Replace "Apple Computer, Inc." with "Apple Inc." in copyright headers
index 8e4f032..ed0b261 100644 (file)
@@ -314,7 +314,7 @@ void AcceleratedCompositingContext::resizeRootLayer(const IntSize& newSize)
     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 @@ void AcceleratedCompositingContext::layerFlushTimerFired()
     flushAndRenderLayers();
 }
 
-void AcceleratedCompositingContext::notifyAnimationStarted(const GraphicsLayer*, double time)
+void AcceleratedCompositingContext::notifyAnimationStarted(const GraphicsLayer*, double /* time */)
 {
 
 }
index 1a00e1e..7f75e24 100644 (file)
@@ -195,7 +195,7 @@ void ChromeClient::unfocus()
         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 @@ bool ChromeClient::runBeforeUnloadConfirmPanel(const WTF::String& message, WebCo
     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 @@ void ChromeClient::invalidateContentsForSlowScroll(const IntRect& updateRect)
     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 @@ void ChromeClient::scrollbarsModeDidChange() const
                                    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 @@ void ChromeClient::exceededDatabaseQuota(Frame* frame, const String& databaseNam
 }
 #endif
 
-void ChromeClient::reachedMaxAppCacheSize(int64_t spaceNeeded)
+void ChromeClient::reachedMaxAppCacheSize(int64_t /* spaceNeeded */)
 {
     // FIXME: Free some space.
     notImplemented();
@@ -862,7 +862,7 @@ void ChromeClient::loadIconForFiles(const Vector<WTF::String>& filenames, WebCor
     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 @@ PassRefPtr<WebCore::SearchPopupMenu> ChromeClient::createSearchPopupMenu(WebCore
 }
 
 #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 @@ void ChromeClient::exitFullScreenForElement(WebCore::Element*)
 }
 #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();
index 11117b5..afdac27 100644 (file)
@@ -76,7 +76,7 @@ DragSourceAction DragClient::dragSourceActionMaskForPoint(const IntPoint&)
     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();
index e36862e..27e7a17 100644 (file)
@@ -584,7 +584,7 @@ void DumpRenderTreeSupportGtk::setCSSGridLayoutEnabled(WebKitWebView* webView, b
     core(webView)->settings().setCSSGridLayoutEnabled(enabled);
 }
 
-void DumpRenderTreeSupportGtk::setCSSRegionsEnabled(WebKitWebView* webView, bool enabled)
+void DumpRenderTreeSupportGtk::setCSSRegionsEnabled(WebKitWebView*, bool enabled)
 {
     RuntimeEnabledFeatures::sharedFeatures().setCSSRegionsEnabled(enabled);
 }
index b167759..aec3237 100644 (file)
@@ -204,7 +204,7 @@ void EditorClient::respondToChangedContents()
 }
 
 static WebKitWebView* viewSettingClipboard = 0;
-static void collapseSelection(GtkClipboard* clipboard, WebKitWebView* webView)
+static void collapseSelection(GtkClipboard*, WebKitWebView* webView)
 {
     if (viewSettingClipboard && viewSettingClipboard == webView)
         return;
index ba76dc3..9e7edc4 100644 (file)
@@ -226,7 +226,7 @@ void FrameLoaderClient::committedLoad(WebCore::DocumentLoader* loader, const cha
     }
 }
 
-bool FrameLoaderClient::shouldUseCredentialStorage(WebCore::DocumentLoader*, unsigned long  identifier)
+bool FrameLoaderClient::shouldUseCredentialStorage(WebCore::DocumentLoader*, unsigned long  /* identifier */)
 {
     return true;
 }
@@ -268,7 +268,7 @@ void FrameLoaderClient::dispatchDidReceiveAuthenticationChallenge(WebCore::Docum
     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 @@ PassRefPtr<Widget> FrameLoaderClient::createPlugin(const IntSize& pluginSize, HT
     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 @@ bool FrameLoaderClient::canHandleRequest(const ResourceRequest&) const
     return true;
 }
 
-bool FrameLoaderClient::canShowMIMETypeAsHTML(const String& MIMEType) const
+bool FrameLoaderClient::canShowMIMETypeAsHTML(const String& /* MIMEType */) const
 {
     notImplemented();
     return false;
@@ -967,7 +966,7 @@ void FrameLoaderClient::prepareForDataSourceReplacement()
     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 @@ void FrameLoaderClient::dispatchDidFailLoading(WebCore::DocumentLoader* loader,
     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 @@ void FrameLoaderClient::updateGlobalHistoryRedirectLinks()
     notImplemented();
 }
 
-void FrameLoaderClient::savePlatformDataToCachedFrame(CachedFrame* cachedFrame)
+void FrameLoaderClient::savePlatformDataToCachedFrame(CachedFrame*)
 {
 }
 
@@ -1217,7 +1216,7 @@ static void postCommitFrameViewSetup(WebKitWebFrame *frame)
 
 void FrameLoaderClient::transitionToCommittedFromCachedFrame(CachedFrame* cachedFrame)
 {
-    ASSERT(cachedFrame->view());
+    ASSERT_UNUSED(cachedFrame, cachedFrame->view());
 
     Frame* frame = core(m_frame);
     if (frame != &frame->page()->mainFrame())
index cee1d34..4335c2d 100644 (file)
@@ -38,7 +38,7 @@ using namespace WebCore;
 
 namespace WebKit {
 
-static void notifyWebViewDestroyed(WebKitWebView* webView, InspectorFrontendClient* inspectorFrontendClient)
+static void notifyWebViewDestroyed(WebKitWebView*, InspectorFrontendClient* inspectorFrontendClient)
 {
     inspectorFrontendClient->destroyInspectorWindow(true);
 }
@@ -50,13 +50,13 @@ public:
     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 @@ void InspectorClient::inspectorDestroyed()
     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 @@ void InspectorFrontendClient::detachWindow()
     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();
 }
index 9b74765..382755d 100644 (file)
@@ -112,7 +112,7 @@ void PlatformStrategiesGtk::refreshPlugins()
     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();
index 629d3be..9a15f4d 100644 (file)
@@ -49,7 +49,7 @@ void ProgressTrackerClient::progressStarted(WebCore::Frame& originatingProgressF
 
 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));
index 797141c..232fb24 100644 (file)
@@ -102,7 +102,7 @@ void WebViewInputMethodFilter::cancelCurrentComposition()
     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())
index 7d644ce..3975f7b 100644 (file)
@@ -943,12 +943,12 @@ void DownloadClient::didReceiveResponse(ResourceHandle*, const ResourceResponse&
     }
 }
 
-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;
index e04a573..1e9ad13 100644 (file)
@@ -82,7 +82,7 @@ public:
 
     // 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 @@ public:
         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 @@ const gchar* webkit_favicon_database_get_path(WebKitFaviconDatabase* database)
     return database->priv->path.get();
 }
 
-static void webkitFaviconDatabaseClose(WebKitFaviconDatabase* database)
+static void webkitFaviconDatabaseClose(WebKitFaviconDatabase*)
 {
     if (iconDatabase().isEnabled()) {
         iconDatabase().setEnabled(false);
@@ -386,7 +386,7 @@ gchar* webkit_favicon_database_get_favicon_uri(WebKitFaviconDatabase* database,
     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 @@ static void getIconPixbufCancelled(void* userData)
         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 @@ void webkit_favicon_database_get_favicon_pixbuf(WebKitFaviconDatabase* database,
  *
  * 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);
index afe16bd..2ba01dc 100644 (file)
@@ -46,7 +46,7 @@ class WebKitSoupAuthDialogAuthenticationClient : public WebCore::AuthenticationC
 using RefCounted<WebKitSoupAuthDialogAuthenticationClient>::ref;
 using RefCounted<WebKitSoupAuthDialogAuthenticationClient>::deref;
 public:
-    virtual void didReceiveAuthenticationChallenge(const AuthenticationChallenge& challenge)
+    virtual void didReceiveAuthenticationChallenge(const AuthenticationChallenge&)
     {
     }
 
index ea2a11a..0ed7315 100644 (file)
@@ -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*)
 {
 }
 
index 0c4d707..2cf15b1 100644 (file)
@@ -76,7 +76,7 @@ static void checkSpellingOfString(WebKitSpellChecker* checker, const char* strin
     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 @@ static void updateSpellCheckingLanguages(WebKitSpellChecker* checker, const char
     priv->textCheckerEnchant->updateSpellCheckingLanguages(languagesVector);
 }
 
-static char* getAutocorrectSuggestionsForMisspelledWord(WebKitSpellChecker* checker, const char* word)
+static char* getAutocorrectSuggestionsForMisspelledWord(WebKitSpellChecker*, const char* /* word */)
 {
     return 0;
 }
index 69844af..737d52f 100644 (file)
@@ -921,7 +921,7 @@ static void draw_page_callback(GtkPrintOperation*, GtkPrintContext* gtkPrintCont
     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();
index 1bc16a5..b2b5fcf 100644 (file)
@@ -107,7 +107,7 @@ static void webkit_web_inspector_set_property(GObject* object, guint prop_id, co
 
 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);
index 6301813..a8eea36 100644 (file)
@@ -1128,7 +1128,7 @@ static WebKitNavigationResponse webkit_web_view_real_navigation_requested(WebKit
     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 @@ static gboolean webkit_web_view_real_script_prompt(WebKitWebView* webView, WebKi
     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 @@ static gboolean webkit_web_view_real_should_allow_editing_action(WebKitWebView*)
     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 @@ static void webkit_web_view_finalize(GObject* object)
     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 @@ static gboolean webkit_signal_accumulator_object_handled(GSignalInvocationHint*
     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 @@ static inline gint webViewConvertFontSizeToPixels(WebKitWebView* webView, double
     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 @@ static void dragExitedCallback(GtkWidget* widget, DragData& dragData, bool dropH
     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 @@ static gboolean webkit_web_view_drag_motion(GtkWidget* widget, GdkDragContext* c
     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 @@ static gboolean webkit_web_view_drag_drop(GtkWidget* widget, GdkDragContext* con
 }
 #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 @@ void webkit_web_view_redo(WebKitWebView* webView)
  * 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 @@ webkit_web_view_get_snapshot(WebKitWebView* webView)
 }
 
 #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 @@ void webkitWebViewRegisterForIconNotification(WebKitWebView* webView, bool shoul
 }
 #endif
 
-void webkitWebViewDirectionChanged(WebKitWebView* webView, GtkTextDirection previousDirection, gpointer)
+void webkitWebViewDirectionChanged(WebKitWebView* webView, GtkTextDirection, gpointer)
 {
     g_return_if_fail(WEBKIT_IS_WEB_VIEW(webView));