logo

badwolf

Unnamed repository; edit this file 'description' to name the repository.
commit: ab54779eedefa9ffc885df43f93d0f184687ee70
parent: 27ffda5b938c1f4b98f0eab881a0f6e560a0ddfb
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 25 Jan 2019 20:29:41 +0100

badwolf.c: Clean -Wunused-parameter

Diffstat:

Mbadwolf.c14++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/badwolf.c b/badwolf.c @@ -21,14 +21,15 @@ struct Client static gboolean WebViewCb_close(WebKitWebView *webView, GtkWidget *window) { + (void)webView; gtk_widget_destroy(window); return TRUE; } static gboolean WebViewCb_web_process_terminated(WebKitWebView *webView, - WebKitWebProcessTerminationReason reason, - gpointer user_data) + WebKitWebProcessTerminationReason reason) { + (void)webView; char *str_reason; switch(reason) @@ -50,6 +51,8 @@ static gboolean WebViewCb_web_process_terminated(WebKitWebView *webView, static gboolean WebViewCb_notify__uri(WebKitWebView *webView, GParamSpec *pspec, gpointer user_data) { + (void)webView; + (void)pspec; const gchar *location_uri; struct Client *browser = (struct Client *)user_data; @@ -63,6 +66,8 @@ static gboolean WebViewCb_notify__uri(WebKitWebView *webView, GParamSpec *pspec, static gboolean WebViewCb_notify__title(WebKitWebView *webView, GParamSpec *pspec, gpointer user_data) { + (void)webView; + (void)pspec; const gchar *title; struct Client *browser = (struct Client *)user_data; @@ -81,6 +86,8 @@ static gboolean WebViewCb_notify__estimated_load_progress(WebKitWebView *webView GParamSpec *pspec, gpointer user_data) { + (void)webView; + (void)pspec; struct Client *browser = (struct Client *)user_data; gdouble progress; @@ -99,6 +106,8 @@ static gboolean WebViewCb_mouse_target_changed(WebKitWebView *webView, guint modifiers, gpointer user_data) { + (void)webView; + (void)modifiers; struct Client *browser = (struct Client *)user_data; const gchar *link_uri = webkit_hit_test_result_get_link_uri(hit); @@ -121,6 +130,7 @@ static gboolean locationCb_activate(GtkEntry *location, gpointer user_data) static gboolean javascriptCb_toggled(GtkButton *javascript, gpointer user_data) { + (void)javascript; struct Client *browser = (struct Client *)user_data; WebKitSettings *settings = webkit_web_view_get_settings(browser->webView);