qulogic/libgnt

Mark all unused parameters.

2019-04-04, Elliott Sales de Andrade
da7920a7a9d6
Parents e95f40de183a
Children 99a844530fc9
Mark all unused parameters.
  • +5 -4
    gntbindable.c
  • +4 -4
    gntbox.c
  • +3 -2
    gntbutton.c
  • +2 -1
    gntcheckbox.c
  • +5 -3
    gntcombobox.c
  • +24 -23
    gntentry.c
  • +8 -6
    gntfilesel.c
  • +2 -2
    gntlabel.c
  • +2 -2
    gntline.c
  • +9 -8
    gntmain.c
  • +8 -8
    gntslider.c
  • +11 -9
    gnttextview.c
  • +15 -13
    gnttree.c
  • +7 -5
    gntutils.c
  • +1 -1
    gntwidget.c
  • +1 -1
    gntwindow.c
  • +48 -41
    gntwm.c
  • +3 -2
    wms/irssi.c
  • +4 -3
    wms/s.c
  • --- a/gntbindable.c Thu Apr 04 06:18:55 2019 -0400
    +++ b/gntbindable.c Thu Apr 04 06:21:09 2019 -0400
    @@ -67,14 +67,14 @@
    }
    static void
    -gnt_bindable_rebinding_cancel(GntWidget *button, gpointer data)
    +gnt_bindable_rebinding_cancel(G_GNUC_UNUSED GntWidget *button, gpointer data)
    {
    gnt_bindable_free_rebind_info();
    gnt_widget_destroy(GNT_WIDGET(data));
    }
    static void
    -gnt_bindable_rebinding_rebind(GntWidget *button, gpointer data)
    +gnt_bindable_rebinding_rebind(G_GNUC_UNUSED GntWidget *button, gpointer data)
    {
    if (rebind_info.keys) {
    gnt_bindable_register_binding(rebind_info.klass,
    @@ -91,7 +91,8 @@
    }
    static gboolean
    -gnt_bindable_rebinding_grab_key(GntBindable *bindable, const char *text, gpointer data)
    +gnt_bindable_rebinding_grab_key(G_GNUC_UNUSED GntBindable *bindable,
    + const char *text, gpointer data)
    {
    GntTextView *textview = GNT_TEXT_VIEW(data);
    char *new_text;
    @@ -437,7 +438,7 @@
    }
    static void
    -reset_binding_window(GntBindableClass *window, gpointer k)
    +reset_binding_window(G_GNUC_UNUSED GntBindableClass *window, gpointer k)
    {
    GntBindableClass *klass = GNT_BINDABLE_CLASS(k);
    klass->help_window = NULL;
    --- a/gntbox.c Thu Apr 04 06:18:55 2019 -0400
    +++ b/gntbox.c Thu Apr 04 06:21:09 2019 -0400
    @@ -348,13 +348,13 @@
    }
    static gboolean
    -action_focus_next(GntBindable *bindable, GList *null)
    +action_focus_next(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    return box_focus_change(GNT_BOX(bindable), TRUE);
    }
    static gboolean
    -action_focus_prev(GntBindable *bindable, GList *null)
    +action_focus_prev(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    return box_focus_change(GNT_BOX(bindable), FALSE);
    }
    @@ -533,7 +533,7 @@
    static void
    gnt_box_set_property(GObject *obj, guint prop_id, const GValue *value,
    - GParamSpec *spec)
    + G_GNUC_UNUSED GParamSpec *spec)
    {
    GntBox *box = GNT_BOX(obj);
    switch (prop_id) {
    @@ -551,7 +551,7 @@
    static void
    gnt_box_get_property(GObject *obj, guint prop_id, GValue *value,
    - GParamSpec *spec)
    + G_GNUC_UNUSED GParamSpec *spec)
    {
    GntBox *box = GNT_BOX(obj);
    switch (prop_id) {
    --- a/gntbutton.c Thu Apr 04 06:18:55 2019 -0400
    +++ b/gntbutton.c Thu Apr 04 06:21:09 2019 -0400
    @@ -79,7 +79,8 @@
    }
    static gboolean
    -gnt_button_clicked(GntWidget *widget, GntMouseEvent event, int x, int y)
    +gnt_button_clicked(GntWidget *widget, GntMouseEvent event, G_GNUC_UNUSED int x,
    + G_GNUC_UNUSED int y)
    {
    if (event == GNT_LEFT_MOUSE_DOWN) {
    gnt_widget_activate(widget);
    @@ -97,7 +98,7 @@
    }
    static gboolean
    -button_activate(GntBindable *bind, GList *null)
    +button_activate(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    gnt_widget_activate(GNT_WIDGET(bind));
    return TRUE;
    --- a/gntcheckbox.c Thu Apr 04 06:18:55 2019 -0400
    +++ b/gntcheckbox.c Thu Apr 04 06:21:09 2019 -0400
    @@ -79,7 +79,8 @@
    }
    static gboolean
    -gnt_check_box_clicked(GntWidget *widget, GntMouseEvent event, int x, int y)
    +gnt_check_box_clicked(GntWidget *widget, GntMouseEvent event,
    + G_GNUC_UNUSED int x, G_GNUC_UNUSED int y)
    {
    if (event == GNT_LEFT_MOUSE_DOWN) {
    toggle_selection(widget);
    --- a/gntcombobox.c Thu Apr 04 06:18:55 2019 -0400
    +++ b/gntcombobox.c Thu Apr 04 06:21:09 2019 -0400
    @@ -222,7 +222,8 @@
    }
    static gboolean
    -gnt_combo_box_clicked(GntWidget *widget, GntMouseEvent event, int x, int y)
    +gnt_combo_box_clicked(GntWidget *widget, GntMouseEvent event,
    + G_GNUC_UNUSED int x, G_GNUC_UNUSED int y)
    {
    GntComboBox *box = GNT_COMBO_BOX(widget);
    gboolean dshowing = GNT_WIDGET_IS_FLAG_SET(box->dropdown->parent, GNT_WIDGET_MAPPED);
    @@ -245,14 +246,15 @@
    }
    static void
    -gnt_combo_box_size_changed(GntWidget *widget, int oldw, int oldh)
    +gnt_combo_box_size_changed(GntWidget *widget, G_GNUC_UNUSED int oldw,
    + G_GNUC_UNUSED int oldh)
    {
    GntComboBox *box = GNT_COMBO_BOX(widget);
    gnt_widget_set_size(box->dropdown, widget->priv.width - 1, box->dropdown->priv.height);
    }
    static gboolean
    -dropdown_menu(GntBindable *b, GList *null)
    +dropdown_menu(GntBindable *b, G_GNUC_UNUSED GList *params)
    {
    if (GNT_WIDGET_IS_FLAG_SET(GNT_COMBO_BOX(b)->dropdown->parent, GNT_WIDGET_MAPPED))
    return FALSE;
    --- a/gntentry.c Thu Apr 04 06:18:55 2019 -0400
    +++ b/gntentry.c Thu Apr 04 06:21:09 2019 -0400
    @@ -335,7 +335,7 @@
    }
    static gboolean
    -move_back(GntBindable *bind, GList *null)
    +move_back(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntEntry *entry = GNT_ENTRY(bind);
    if (entry->cursor <= entry->start)
    @@ -349,7 +349,7 @@
    }
    static gboolean
    -move_forward(GntBindable *bind, GList *list)
    +move_forward(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntEntry *entry = GNT_ENTRY(bind);
    if (entry->cursor >= entry->end)
    @@ -363,7 +363,7 @@
    }
    static gboolean
    -backspace(GntBindable *bind, GList *null)
    +backspace(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    int len;
    GntEntry *entry = GNT_ENTRY(bind);
    @@ -389,7 +389,7 @@
    }
    static gboolean
    -delkey(GntBindable *bind, GList *null)
    +delkey(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    int len;
    GntEntry *entry = GNT_ENTRY(bind);
    @@ -410,7 +410,7 @@
    }
    static gboolean
    -move_start(GntBindable *bind, GList *null)
    +move_start(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntEntry *entry = GNT_ENTRY(bind);
    entry->scroll = entry->cursor = entry->start;
    @@ -420,7 +420,7 @@
    }
    static gboolean
    -move_end(GntBindable *bind, GList *null)
    +move_end(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntEntry *entry = GNT_ENTRY(bind);
    entry->cursor = entry->end;
    @@ -433,7 +433,7 @@
    }
    static gboolean
    -history_next(GntBindable *bind, GList *null)
    +history_next(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntEntry *entry = GNT_ENTRY(bind);
    if (entry->histlength && entry->history->prev)
    @@ -450,7 +450,7 @@
    }
    static gboolean
    -history_prev(GntBindable *bind, GList *null)
    +history_prev(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntEntry *entry = GNT_ENTRY(bind);
    if (entry->histlength && entry->history->next)
    @@ -475,7 +475,7 @@
    }
    static gboolean
    -history_search(GntBindable *bind, GList *null)
    +history_search(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntEntry *entry = GNT_ENTRY(bind);
    GList *iter;
    @@ -521,7 +521,7 @@
    }
    static gboolean
    -clipboard_paste(GntBindable *bind, GList *n)
    +clipboard_paste(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntEntry *entry = GNT_ENTRY(bind);
    gchar *i, *text, *a, *all;
    @@ -542,7 +542,7 @@
    }
    static gboolean
    -suggest_show(GntBindable *bind, GList *null)
    +suggest_show(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntEntry *entry = GNT_ENTRY(bind);
    if (entry->ddown) {
    @@ -553,7 +553,7 @@
    }
    static gboolean
    -suggest_next(GntBindable *bind, GList *null)
    +suggest_next(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntEntry *entry = GNT_ENTRY(bind);
    if (entry->ddown) {
    @@ -564,7 +564,7 @@
    }
    static gboolean
    -suggest_prev(GntBindable *bind, GList *null)
    +suggest_prev(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntEntry *entry = GNT_ENTRY(bind);
    if (entry->ddown) {
    @@ -575,7 +575,7 @@
    }
    static gboolean
    -suggest_next_page(GntBindable *bind, GList *null)
    +suggest_next_page(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntEntry *entry = GNT_ENTRY(bind);
    if (entry->ddown) {
    @@ -586,7 +586,7 @@
    }
    static gboolean
    -suggest_prev_page(GntBindable *bind, GList *null)
    +suggest_prev_page(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntEntry *entry = GNT_ENTRY(bind);
    if (entry->ddown) {
    @@ -597,7 +597,7 @@
    }
    static gboolean
    -del_to_home(GntBindable *bind, GList *null)
    +del_to_home(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntEntry *entry = GNT_ENTRY(bind);
    if (entry->cursor <= entry->start)
    @@ -613,7 +613,7 @@
    }
    static gboolean
    -del_to_end(GntBindable *bind, GList *null)
    +del_to_end(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntEntry *entry = GNT_ENTRY(bind);
    if (entry->end <= entry->cursor)
    @@ -668,7 +668,7 @@
    #undef SAME
    static gboolean
    -move_back_word(GntBindable *bind, GList *null)
    +move_back_word(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntEntry *entry = GNT_ENTRY(bind);
    const char *iter = g_utf8_find_prev_char(entry->start, entry->cursor);
    @@ -685,7 +685,7 @@
    }
    static gboolean
    -del_prev_word(GntBindable *bind, GList *null)
    +del_prev_word(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntWidget *widget = GNT_WIDGET(bind);
    GntEntry *entry = GNT_ENTRY(bind);
    @@ -713,7 +713,7 @@
    }
    static gboolean
    -move_forward_word(GntBindable *bind, GList *list)
    +move_forward_word(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntEntry *entry = GNT_ENTRY(bind);
    GntWidget *widget = GNT_WIDGET(bind);
    @@ -727,7 +727,7 @@
    }
    static gboolean
    -delete_forward_word(GntBindable *bind, GList *list)
    +delete_forward_word(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntEntry *entry = GNT_ENTRY(bind);
    GntWidget *widget = GNT_WIDGET(bind);
    @@ -774,7 +774,7 @@
    }
    static gboolean
    -entry_yank(GntBindable *bind, GList *null)
    +entry_yank(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntEntry *entry = GNT_ENTRY(bind);
    gnt_entry_key_pressed(GNT_WIDGET(entry), entry->killring->buffer->str);
    @@ -920,7 +920,8 @@
    }
    static gboolean
    -gnt_entry_clicked(GntWidget *widget, GntMouseEvent event, int x, int y)
    +gnt_entry_clicked(GntWidget *widget, GntMouseEvent event, G_GNUC_UNUSED int x,
    + G_GNUC_UNUSED int y)
    {
    if (event == GNT_MIDDLE_MOUSE_DOWN) {
    clipboard_paste(GNT_BINDABLE(widget), NULL);
    --- a/gntfilesel.c Thu Apr 04 06:18:55 2019 -0400
    +++ b/gntfilesel.c Thu Apr 04 06:21:09 2019 -0400
    @@ -274,7 +274,8 @@
    }
    static gboolean
    -location_key_pressed(GntTree *tree, const char *key, GntFileSel *sel)
    +location_key_pressed(G_GNUC_UNUSED GntTree *tree, const char *key,
    + GntFileSel *sel)
    {
    char *path;
    char *str;
    @@ -310,7 +311,8 @@
    }
    static void
    -file_sel_changed(GntWidget *widget, gpointer old, gpointer current, GntFileSel *sel)
    +file_sel_changed(GntWidget *widget, G_GNUC_UNUSED gpointer old,
    + G_GNUC_UNUSED gpointer current, GntFileSel *sel)
    {
    if (GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_HAS_FOCUS)) {
    g_free(sel->suggest);
    @@ -359,7 +361,7 @@
    }
    static gboolean
    -toggle_tag_selection(GntBindable *bind, GList *null)
    +toggle_tag_selection(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntFileSel *sel = GNT_FILE_SEL(bind);
    char *str;
    @@ -393,7 +395,7 @@
    }
    static gboolean
    -clear_tags(GntBindable *bind, GList *null)
    +clear_tags(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntFileSel *sel = GNT_FILE_SEL(bind);
    GntWidget *tree;
    @@ -417,7 +419,7 @@
    }
    static gboolean
    -up_directory(GntBindable *bind, GList *null)
    +up_directory(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    char *path, *dir;
    GntFileSel *sel = GNT_FILE_SEL(bind);
    @@ -514,7 +516,7 @@
    * GntFileSel API
    *****************************************************************************/
    static void
    -select_activated_cb(GntWidget *button, GntFileSel *sel)
    +select_activated_cb(G_GNUC_UNUSED GntWidget *button, GntFileSel *sel)
    {
    char *path = gnt_file_sel_get_selected_file(sel);
    char *file = g_path_get_basename(path);
    --- a/gntlabel.c Thu Apr 04 06:18:55 2019 -0400
    +++ b/gntlabel.c Thu Apr 04 06:21:09 2019 -0400
    @@ -70,7 +70,7 @@
    static void
    gnt_label_set_property(GObject *obj, guint prop_id, const GValue *value,
    - GParamSpec *spec)
    + G_GNUC_UNUSED GParamSpec *spec)
    {
    GntLabel *label = GNT_LABEL(obj);
    switch (prop_id) {
    @@ -89,7 +89,7 @@
    static void
    gnt_label_get_property(GObject *obj, guint prop_id, GValue *value,
    - GParamSpec *spec)
    + G_GNUC_UNUSED GParamSpec *spec)
    {
    GntLabel *label = GNT_LABEL(obj);
    switch (prop_id) {
    --- a/gntline.c Thu Apr 04 06:18:55 2019 -0400
    +++ b/gntline.c Thu Apr 04 06:21:09 2019 -0400
    @@ -73,7 +73,7 @@
    static void
    gnt_line_set_property(GObject *obj, guint prop_id, const GValue *value,
    - GParamSpec *spec)
    + G_GNUC_UNUSED GParamSpec *spec)
    {
    GntLine *line = GNT_LINE(obj);
    switch (prop_id) {
    @@ -92,7 +92,7 @@
    static void
    gnt_line_get_property(GObject *obj, guint prop_id, GValue *value,
    - GParamSpec *spec)
    + G_GNUC_UNUSED GParamSpec *spec)
    {
    GntLine *line = GNT_LINE(obj);
    switch (prop_id) {
    --- a/gntmain.c Thu Apr 04 06:18:55 2019 -0400
    +++ b/gntmain.c Thu Apr 04 06:21:09 2019 -0400
    @@ -100,7 +100,7 @@
    } escape_stuff;
    static gboolean
    -escape_timeout(gpointer data)
    +escape_timeout(G_GNUC_UNUSED gpointer data)
    {
    gnt_wm_process_input(wm, "\033");
    escape_stuff.timer = 0;
    @@ -246,7 +246,8 @@
    #endif
    static gboolean
    -io_invoke_error(GIOChannel *source, GIOCondition cond, gpointer data)
    +io_invoke_error(GIOChannel *source, G_GNUC_UNUSED GIOCondition cond,
    + gpointer data)
    {
    /* XXX: it throws an error after evey io_invoke, I have no idea why */
    #ifndef _WIN32
    @@ -262,9 +263,9 @@
    return TRUE;
    }
    -
    static gboolean
    -io_invoke(GIOChannel *source, GIOCondition cond, gpointer null)
    +io_invoke(GIOChannel *source, G_GNUC_UNUSED GIOCondition cond,
    + G_GNUC_UNUSED gpointer data)
    {
    #ifdef _WIN32
    /* We need:
    @@ -470,13 +471,13 @@
    #endif
    static void
    -exit_confirmed(gpointer null)
    +exit_confirmed(G_GNUC_UNUSED gpointer data)
    {
    gnt_bindable_perform_action_named(GNT_BINDABLE(wm), "wm-quit", NULL);
    }
    static void
    -exit_win_close(GntWidget *w, GntWidget **win)
    +exit_win_close(G_GNUC_UNUSED GntWidget *w, GntWidget **win)
    {
    *win = NULL;
    }
    @@ -778,7 +779,7 @@
    }
    static void
    -reset_menu(GntWidget *widget, gpointer null)
    +reset_menu(G_GNUC_UNUSED GntWidget *widget, G_GNUC_UNUSED gpointer data)
    {
    wm->menu = NULL;
    }
    @@ -823,7 +824,7 @@
    } ChildProcess;
    static void
    -reap_child(GPid pid, gint status, gpointer data)
    +reap_child(G_GNUC_UNUSED GPid pid, gint status, gpointer data)
    {
    ChildProcess *cp = data;
    if (cp->callback) {
    --- a/gntslider.c Thu Apr 04 06:18:55 2019 -0400
    +++ b/gntslider.c Thu Apr 04 06:21:09 2019 -0400
    @@ -123,7 +123,7 @@
    }
    static gboolean
    -step_back(GntBindable *bindable, GList *null)
    +step_back(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntSlider *slider = GNT_SLIDER(bindable);
    gnt_slider_advance_step(slider, -1);
    @@ -131,7 +131,7 @@
    }
    static gboolean
    -small_step_back(GntBindable *bindable, GList *null)
    +small_step_back(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntSlider *slider = GNT_SLIDER(bindable);
    gnt_slider_set_value(slider, slider->current - slider->smallstep);
    @@ -139,7 +139,7 @@
    }
    static gboolean
    -large_step_back(GntBindable *bindable, GList *null)
    +large_step_back(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntSlider *slider = GNT_SLIDER(bindable);
    gnt_slider_set_value(slider, slider->current - slider->largestep);
    @@ -147,7 +147,7 @@
    }
    static gboolean
    -step_forward(GntBindable *bindable, GList *list)
    +step_forward(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntSlider *slider = GNT_SLIDER(bindable);
    gnt_slider_advance_step(slider, 1);
    @@ -155,7 +155,7 @@
    }
    static gboolean
    -small_step_forward(GntBindable *bindable, GList *null)
    +small_step_forward(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntSlider *slider = GNT_SLIDER(bindable);
    gnt_slider_set_value(slider, slider->current + slider->smallstep);
    @@ -163,7 +163,7 @@
    }
    static gboolean
    -large_step_forward(GntBindable *bindable, GList *null)
    +large_step_forward(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntSlider *slider = GNT_SLIDER(bindable);
    gnt_slider_set_value(slider, slider->current + slider->largestep);
    @@ -171,7 +171,7 @@
    }
    static gboolean
    -move_min_value(GntBindable *bindable, GList *null)
    +move_min_value(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntSlider *slider = GNT_SLIDER(bindable);
    gnt_slider_set_value(slider, slider->min);
    @@ -179,7 +179,7 @@
    }
    static gboolean
    -move_max_value(GntBindable *bindable, GList *null)
    +move_max_value(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntSlider *slider = GNT_SLIDER(bindable);
    gnt_slider_set_value(slider, slider->max);
    --- a/gnttextview.c Thu Apr 04 06:18:55 2019 -0400
    +++ b/gnttextview.c Thu Apr 04 06:21:09 2019 -0400
    @@ -204,20 +204,21 @@
    }
    static gboolean
    -gnt_text_view_key_pressed(GntWidget *widget, const char *text)
    +gnt_text_view_key_pressed(G_GNUC_UNUSED GntWidget *widget,
    + G_GNUC_UNUSED const char *text)
    {
    return FALSE;
    }
    static void
    -free_text_segment(gpointer data, gpointer null)
    +free_text_segment(gpointer data, G_GNUC_UNUSED gpointer unused)
    {
    GntTextSegment *seg = data;
    g_free(seg);
    }
    static void
    -free_text_line(gpointer data, gpointer null)
    +free_text_line(gpointer data, G_GNUC_UNUSED gpointer unused)
    {
    GntTextLine *line = data;
    g_list_foreach(line->segments, free_text_segment, NULL);
    @@ -226,7 +227,7 @@
    }
    static void
    -free_tag(gpointer data, gpointer null)
    +free_tag(gpointer data, G_GNUC_UNUSED gpointer unused)
    {
    GntTextTag *tag = data;
    g_free(tag->name);
    @@ -315,7 +316,8 @@
    return g_string_new_len(start, endsize - start);
    }
    -static gboolean too_slow(gpointer n)
    +static gboolean
    +too_slow(G_GNUC_UNUSED gpointer n)
    {
    double_click = FALSE;
    return FALSE;
    @@ -433,7 +435,7 @@
    }
    static void
    -gnt_text_view_size_changed(GntWidget *widget, int w, int h)
    +gnt_text_view_size_changed(GntWidget *widget, int w, G_GNUC_UNUSED int h)
    {
    if (w != widget->priv.width && GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_MAPPED)) {
    gnt_text_view_reflow(GNT_TEXT_VIEW(widget));
    @@ -803,7 +805,7 @@
    }
    static gboolean
    -scroll_tv(GntWidget *wid, const char *key, GntTextView *tv)
    +scroll_tv(G_GNUC_UNUSED GntWidget *wid, const char *key, GntTextView *tv)
    {
    if (strcmp(key, GNT_KEY_PGUP) == 0) {
    gnt_text_view_scroll(tv, -(GNT_WIDGET(tv)->priv.height - 2));
    @@ -848,7 +850,7 @@
    }
    static void
    -editor_end_cb(int status, gpointer data)
    +editor_end_cb(int status, G_GNUC_UNUSED gpointer data)
    {
    if (status == 0) {
    char *text = NULL;
    @@ -863,7 +865,7 @@
    }
    static void
    -pager_end_cb(int status, gpointer data)
    +pager_end_cb(G_GNUC_UNUSED int status, G_GNUC_UNUSED gpointer data)
    {
    cleanup_pageditor();
    }
    --- a/gnttree.c Thu Apr 04 06:18:55 2019 -0400
    +++ b/gnttree.c Thu Apr 04 06:21:09 2019 -0400
    @@ -674,7 +674,7 @@
    }
    static gboolean
    -action_down(GntBindable *bind, GList *null)
    +action_down(GntBindable *bind, G_GNUC_UNUSED GList *unused)
    {
    int dist;
    GntTree *tree = GNT_TREE(bind);
    @@ -693,7 +693,7 @@
    }
    static gboolean
    -action_move_parent(GntBindable *bind, GList *null)
    +action_move_parent(GntBindable *bind, G_GNUC_UNUSED GList *unused)
    {
    GntTree *tree = GNT_TREE(bind);
    GntTreeRow *row = tree->current;
    @@ -712,7 +712,7 @@
    }
    static gboolean
    -action_up(GntBindable *bind, GList *list)
    +action_up(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    int dist;
    GntTree *tree = GNT_TREE(bind);
    @@ -732,7 +732,7 @@
    }
    static gboolean
    -action_page_down(GntBindable *bind, GList *null)
    +action_page_down(GntBindable *bind, G_GNUC_UNUSED GList *unused)
    {
    GntTree *tree = GNT_TREE(bind);
    GntTreeRow *old = tree->current;
    @@ -756,7 +756,7 @@
    }
    static gboolean
    -action_page_up(GntBindable *bind, GList *null)
    +action_page_up(GntBindable *bind, G_GNUC_UNUSED GList *unused)
    {
    GntWidget *widget = GNT_WIDGET(bind);
    GntTree *tree = GNT_TREE(bind);
    @@ -884,7 +884,8 @@
    }
    static gboolean
    -gnt_tree_clicked(GntWidget *widget, GntMouseEvent event, int x, int y)
    +gnt_tree_clicked(GntWidget *widget, GntMouseEvent event, G_GNUC_UNUSED int x,
    + G_GNUC_UNUSED int y)
    {
    GntTree *tree = GNT_TREE(widget);
    GntTreeRow *old = tree->current;
    @@ -926,7 +927,8 @@
    }
    static void
    -gnt_tree_size_changed(GntWidget *widget, int w, int h)
    +gnt_tree_size_changed(GntWidget *widget, G_GNUC_UNUSED int w,
    + G_GNUC_UNUSED int h)
    {
    GntTree *tree = GNT_TREE(widget);
    if (widget->priv.width <= 0)
    @@ -936,7 +938,7 @@
    }
    static gboolean
    -start_search(GntBindable *bindable, GList *list)
    +start_search(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntTree *tree = GNT_TREE(bindable);
    if (tree->priv->search)
    @@ -948,7 +950,7 @@
    }
    static gboolean
    -end_search_action(GntBindable *bindable, GList *list)
    +end_search_action(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntTree *tree = GNT_TREE(bindable);
    if (tree->priv->search == NULL)
    @@ -960,7 +962,7 @@
    }
    static gboolean
    -move_first_action(GntBindable *bind, GList *null)
    +move_first_action(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntTree *tree = GNT_TREE(bind);
    GntTreeRow *row = tree->root;
    @@ -978,7 +980,7 @@
    }
    static gboolean
    -move_last_action(GntBindable *bind, GList *null)
    +move_last_action(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntTree *tree = GNT_TREE(bind);
    GntTreeRow *old = tree->current;
    @@ -1000,7 +1002,7 @@
    static void
    gnt_tree_set_property(GObject *obj, guint prop_id, const GValue *value,
    - GParamSpec *spec)
    + G_GNUC_UNUSED GParamSpec *spec)
    {
    GntTree *tree = GNT_TREE(obj);
    switch (prop_id) {
    @@ -1018,7 +1020,7 @@
    static void
    gnt_tree_get_property(GObject *obj, guint prop_id, GValue *value,
    - GParamSpec *spec)
    + G_GNUC_UNUSED GParamSpec *spec)
    {
    GntTree *tree = GNT_TREE(obj);
    switch (prop_id) {
    --- a/gntutils.c Thu Apr 04 06:18:55 2019 -0400
    +++ b/gntutils.c Thu Apr 04 06:21:09 2019 -0400
    @@ -169,10 +169,11 @@
    return dest;
    }
    -gboolean gnt_boolean_handled_accumulator(GSignalInvocationHint *ihint,
    - GValue *return_accu,
    - const GValue *handler_return,
    - gpointer dummy)
    +gboolean
    +gnt_boolean_handled_accumulator(G_GNUC_UNUSED GSignalInvocationHint *ihint,
    + GValue *return_accu,
    + const GValue *handler_return,
    + G_GNUC_UNUSED gpointer dummy)
    {
    gboolean continue_emission;
    gboolean signal_handled;
    @@ -481,7 +482,8 @@
    }
    static gboolean
    -key_pressed(GntWidget *widget, const char *text, TriggerButton *trig)
    +key_pressed(G_GNUC_UNUSED GntWidget *widget, const char *text,
    + TriggerButton *trig)
    {
    if (text && trig->text &&
    strcmp(text, trig->text) == 0) {
    --- a/gntwidget.c Thu Apr 04 06:18:55 2019 -0400
    +++ b/gntwidget.c Thu Apr 04 06:21:09 2019 -0400
    @@ -101,7 +101,7 @@
    }
    static gboolean
    -context_menu(GntBindable *bind, GList *null)
    +context_menu(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    gboolean ret = FALSE;
    g_signal_emit(bind, signals[SIG_CONTEXT_MENU], 0, &ret);
    --- a/gntwindow.c Thu Apr 04 06:18:55 2019 -0400
    +++ b/gntwindow.c Thu Apr 04 06:21:09 2019 -0400
    @@ -46,7 +46,7 @@
    G_DEFINE_TYPE(GntWindow, gnt_window, GNT_TYPE_BOX)
    static gboolean
    -show_menu(GntBindable *bind, GList *null)
    +show_menu(GntBindable *bind, G_GNUC_UNUSED GList *params)
    {
    GntWindow *win = GNT_WINDOW(bind);
    if (win->menu) {
    --- a/gntwm.c Thu Apr 04 06:18:55 2019 -0400
    +++ b/gntwm.c Thu Apr 04 06:21:09 2019 -0400
    @@ -292,7 +292,7 @@
    }
    static void
    -refresh_node(GntWidget *widget, GntNode *node, gpointer m)
    +refresh_node(GntWidget *widget, G_GNUC_UNUSED GntNode *node, gpointer m)
    {
    int x, y, w, h;
    int nw, nh;
    @@ -372,7 +372,8 @@
    g_key_file_free(gfile);
    }
    -static gboolean check_idle(gpointer n)
    +static gboolean
    +check_idle(G_GNUC_UNUSED gpointer n)
    {
    if (idle_update) {
    time(&last_active_time);
    @@ -444,7 +445,7 @@
    }
    static gboolean
    -window_next(GntBindable *bindable, GList *null)
    +window_next(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(bindable);
    switch_window(wm, 1, FALSE);
    @@ -452,7 +453,7 @@
    }
    static gboolean
    -window_prev(GntBindable *bindable, GList *null)
    +window_prev(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(bindable);
    switch_window(wm, -1, FALSE);
    @@ -483,7 +484,7 @@
    }
    static gboolean
    -window_scroll_up(GntBindable *bindable, GList *null)
    +window_scroll_up(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(bindable);
    GntWidget *window;
    @@ -506,7 +507,7 @@
    }
    static gboolean
    -window_scroll_down(GntBindable *bindable, GList *null)
    +window_scroll_down(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(bindable);
    GntWidget *window;
    @@ -531,7 +532,7 @@
    }
    static gboolean
    -window_close(GntBindable *bindable, GList *null)
    +window_close(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(bindable);
    @@ -547,7 +548,7 @@
    }
    static void
    -destroy__list(GntWidget *widget, GntWM *wm)
    +destroy__list(G_GNUC_UNUSED GntWidget *widget, GntWM *wm)
    {
    wm->_list.window = NULL;
    wm->_list.tree = NULL;
    @@ -680,7 +681,7 @@
    }
    static gboolean
    -window_list(GntBindable *bindable, GList *null)
    +window_list(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(bindable);
    @@ -696,7 +697,8 @@
    }
    static void
    -dump_file_save(GntFileSel *fs, const char *path, const char *f, gpointer n)
    +dump_file_save(GntFileSel *fs, const char *path, G_GNUC_UNUSED const char *f,
    + G_GNUC_UNUSED gpointer n)
    {
    FILE *file;
    int x, y;
    @@ -843,13 +845,13 @@
    }
    static void
    -dump_file_cancel(GntWidget *w, GntFileSel *fs)
    +dump_file_cancel(G_GNUC_UNUSED GntWidget *w, GntFileSel *fs)
    {
    gnt_widget_destroy(GNT_WIDGET(fs));
    }
    static gboolean
    -dump_screen(GntBindable *b, GList *null)
    +dump_screen(G_GNUC_UNUSED GntBindable *b, G_GNUC_UNUSED GList *params)
    {
    GntWidget *window = gnt_file_sel_new();
    GntFileSel *sel = GNT_FILE_SEL(window);
    @@ -900,7 +902,7 @@
    }
    static gboolean
    -shift_left(GntBindable *bindable, GList *null)
    +shift_left(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(bindable);
    if (wm->_list.window)
    @@ -914,7 +916,7 @@
    }
    static gboolean
    -shift_right(GntBindable *bindable, GList *null)
    +shift_right(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(bindable);
    @@ -946,7 +948,7 @@
    }
    static gboolean
    -list_actions(GntBindable *bindable, GList *null)
    +list_actions(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWidget *tree, *win;
    GList *iter;
    @@ -1065,7 +1067,7 @@
    }
    static gboolean
    -start_move(GntBindable *bindable, GList *null)
    +start_move(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(bindable);
    if (wm->_list.window || wm->menu)
    @@ -1080,7 +1082,7 @@
    }
    static gboolean
    -start_resize(GntBindable *bindable, GList *null)
    +start_resize(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(bindable);
    if (wm->_list.window || wm->menu)
    @@ -1095,7 +1097,7 @@
    }
    static gboolean
    -wm_quit(GntBindable *bindable, GList *list)
    +wm_quit(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(bindable);
    if (write_timeout)
    @@ -1105,13 +1107,14 @@
    }
    static gboolean
    -return_true(GntWM *wm, GntWidget *w, int *a, int *b)
    +return_true(G_GNUC_UNUSED GntWM *wm, G_GNUC_UNUSED GntWidget *w,
    + G_GNUC_UNUSED int *a, G_GNUC_UNUSED int *b)
    {
    return TRUE;
    }
    static gboolean
    -refresh_screen(GntBindable *bindable, GList *null)
    +refresh_screen(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(bindable);
    GList *iter;
    @@ -1136,7 +1139,8 @@
    }
    static gboolean
    -toggle_clipboard(GntBindable *bindable, GList *n)
    +toggle_clipboard(G_GNUC_UNUSED GntBindable *bindable,
    + G_GNUC_UNUSED GList *params)
    {
    static GntWidget *clip;
    gchar *text;
    @@ -1169,7 +1173,7 @@
    }
    static gboolean
    -tag_widget(GntBindable *b, GList *params)
    +tag_widget(GntBindable *b, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(b);
    GntWidget *widget;
    @@ -1198,7 +1202,7 @@
    }
    static gboolean
    -place_tagged(GntBindable *b, GList *params)
    +place_tagged(GntBindable *b, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(b);
    g_list_foreach(wm->tagged, widget_move_ws, wm);
    @@ -1209,7 +1213,7 @@
    }
    static gboolean
    -workspace_list(GntBindable *b, GList *params)
    +workspace_list(GntBindable *b, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(b);
    @@ -1222,7 +1226,7 @@
    }
    static gboolean
    -workspace_new(GntBindable *bindable, GList *null)
    +workspace_new(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(bindable);
    GntWS *ws = gnt_ws_new(NULL);
    @@ -1232,7 +1236,7 @@
    }
    static gboolean
    -ignore_keys_start(GntBindable *bindable, GList *n)
    +ignore_keys_start(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(bindable);
    @@ -1244,7 +1248,8 @@
    }
    static gboolean
    -ignore_keys_end(GntBindable *bindable, GList *n)
    +ignore_keys_end(G_GNUC_UNUSED GntBindable *bindable,
    + G_GNUC_UNUSED GList *params)
    {
    if (ignore_keys) {
    ignore_keys = FALSE;
    @@ -1254,7 +1259,7 @@
    }
    static gboolean
    -window_next_urgent(GntBindable *bindable, GList *n)
    +window_next_urgent(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(bindable);
    switch_window(wm, 1, TRUE);
    @@ -1262,7 +1267,7 @@
    }
    static gboolean
    -window_prev_urgent(GntBindable *bindable, GList *n)
    +window_prev_urgent(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(bindable);
    switch_window(wm, -1, TRUE);
    @@ -1271,7 +1276,8 @@
    #ifdef USE_PYTHON
    static void
    -python_script_selected(GntFileSel *fs, const char *path, const char *f, gpointer n)
    +python_script_selected(GntFileSel *fs, const char *path,
    + G_GNUC_UNUSED const char *f, G_GNUC_UNUSED gpointer n)
    {
    char *dir = g_path_get_dirname(path);
    FILE *file = fopen(path, "r");
    @@ -1296,7 +1302,7 @@
    }
    static gboolean
    -run_python(GntBindable *bindable, GList *n)
    +run_python(G_GNUC_UNUSED GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWidget *window = gnt_file_sel_new();
    GntFileSel *sel = GNT_FILE_SEL(window);
    @@ -1327,13 +1333,13 @@
    }
    static gboolean
    -help_for_wm(GntBindable *bindable, GList *null)
    +help_for_wm(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    return help_for_bindable(GNT_WM(bindable),bindable);
    }
    static gboolean
    -help_for_window(GntBindable *bindable, GList *null)
    +help_for_window(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(bindable);
    GntWidget *widget;
    @@ -1347,7 +1353,7 @@
    }
    static gboolean
    -help_for_widget(GntBindable *bindable, GList *null)
    +help_for_widget(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(bindable);
    GntWidget *widget;
    @@ -1363,7 +1369,7 @@
    }
    static void
    -accumulate_windows(gpointer window, gpointer node, gpointer p)
    +accumulate_windows(gpointer window, G_GNUC_UNUSED gpointer node, gpointer p)
    {
    GList *list = *(GList**)p;
    list = g_list_prepend(list, window);
    @@ -1634,13 +1640,13 @@
    }
    static gboolean
    -workspace_next(GntBindable *wm, GList *n)
    +workspace_next(GntBindable *wm, G_GNUC_UNUSED GList *params)
    {
    return gnt_wm_switch_workspace_next(GNT_WM(wm));
    }
    static gboolean
    -workspace_prev(GntBindable *wm, GList *n)
    +workspace_prev(GntBindable *wm, G_GNUC_UNUSED GList *params)
    {
    return gnt_wm_switch_workspace_prev(GNT_WM(wm));
    }
    @@ -1684,7 +1690,8 @@
    return NULL;
    }
    -static void free_workspaces(gpointer data, gpointer n)
    +static void
    +free_workspaces(gpointer data, G_GNUC_UNUSED gpointer n)
    {
    GntWS *s = data;
    g_free(s->name);
    @@ -1714,7 +1721,7 @@
    }
    static gboolean
    -match_title(gpointer title, gpointer n, gpointer wid_title)
    +match_title(gpointer title, G_GNUC_UNUSED gpointer n, gpointer wid_title)
    {
    /* XXX: do any regex magic here. */
    if (g_strrstr((gchar *)wid_title, (gchar *)title))
    @@ -2019,13 +2026,13 @@
    }
    static void
    -gnt_wm_win_resized(GntWM *wm, GntNode *node)
    +gnt_wm_win_resized(G_GNUC_UNUSED GntWM *wm, G_GNUC_UNUSED GntNode *node)
    {
    /*refresh_node(node->me, node, NULL);*/
    }
    static void
    -gnt_wm_win_moved(GntWM *wm, GntNode *node)
    +gnt_wm_win_moved(G_GNUC_UNUSED GntWM *wm, GntNode *node)
    {
    refresh_node(node->me, node, NULL);
    }
    --- a/wms/irssi.c Thu Apr 04 06:18:55 2019 -0400
    +++ b/wms/irssi.c Thu Apr 04 06:21:09 2019 -0400
    @@ -139,7 +139,8 @@
    }
    static void
    -remove_border_set_position_size(GntWM *wm, GntWidget *win, int x, int y, int w, int h)
    +remove_border_set_position_size(G_GNUC_UNUSED GntWM *wm, GntWidget *win, int x,
    + int y, int w, int h)
    {
    gnt_box_set_toplevel(GNT_BOX(win), FALSE);
    GNT_WIDGET_SET_FLAGS(win, GNT_WIDGET_CAN_TAKE_FOCUS);
    @@ -288,7 +289,7 @@
    }
    static void
    -refresh_window(GntWidget *widget, GntNode *node, Irssi *irssi)
    +refresh_window(GntWidget *widget, G_GNUC_UNUSED GntNode *node, Irssi *irssi)
    {
    int vert, hor;
    int x, y, w, h;
    --- a/wms/s.c Thu Apr 04 06:18:55 2019 -0400
    +++ b/wms/s.c Thu Apr 04 06:21:09 2019 -0400
    @@ -78,7 +78,7 @@
    }
    static void
    -s_decorate_window(GntWM *wm, GntWidget *win)
    +s_decorate_window(G_GNUC_UNUSED GntWM *wm, GntWidget *win)
    {
    const char *name;
    @@ -162,7 +162,8 @@
    }
    static gboolean
    -s_mouse_clicked(GntWM *wm, GntMouseEvent event, int cx, int cy, GntWidget *widget)
    +s_mouse_clicked(G_GNUC_UNUSED GntWM *wm, GntMouseEvent event, int cx, int cy,
    + GntWidget *widget)
    {
    int x, y, w, h;
    @@ -186,7 +187,7 @@
    }
    static gboolean
    -raise_main_window(GntBindable *bindable, GList *null)
    +raise_main_window(GntBindable *bindable, G_GNUC_UNUSED GList *params)
    {
    GntWM *wm = GNT_WM(bindable);
    GntWidget *main_window = find_widget(wm, "MainWindow");