diff options
badwolf.c: Clean -Wunused-parameter
1 files changed, 12 insertions, 2 deletions
| -rw-r--r-- | badwolf.c | 14 |
@@ -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); |