Skip to content

Commit

Permalink
testsuite,ctk,gestures: add G_GNUC_UNUSED in unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed Nov 4, 2024
1 parent c23e918 commit 53b4559
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions testsuite/ctk/gestures.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ typedef struct {
} LegacyData;

static gboolean
legacy_cb (CtkWidget *w, CdkEventButton *button, gpointer data)
legacy_cb (CtkWidget *w,
CdkEventButton *button G_GNUC_UNUSED,
gpointer data)
{
LegacyData *ld = data;

Expand All @@ -217,7 +219,11 @@ typedef struct {
} GestureData;

static void
press_cb (CtkGesture *g, gint n_press, gdouble x, gdouble y, gpointer data)
press_cb (CtkGesture *g,
gint n_press G_GNUC_UNUSED,
gdouble x G_GNUC_UNUSED,
gdouble y G_GNUC_UNUSED,
gpointer data)
{
CtkEventController *c = CTK_EVENT_CONTROLLER (g);
CdkEventSequence *sequence;
Expand All @@ -242,7 +248,9 @@ press_cb (CtkGesture *g, gint n_press, gdouble x, gdouble y, gpointer data)
}

static void
cancel_cb (CtkGesture *g, CdkEventSequence *sequence, gpointer data)
cancel_cb (CtkGesture *g,
CdkEventSequence *sequence G_GNUC_UNUSED,
gpointer data)
{
GestureData *gd = data;
const gchar *name;
Expand All @@ -255,7 +263,9 @@ cancel_cb (CtkGesture *g, CdkEventSequence *sequence, gpointer data)
}

static void
begin_cb (CtkGesture *g, CdkEventSequence *sequence, gpointer data)
begin_cb (CtkGesture *g,
CdkEventSequence *sequence G_GNUC_UNUSED,
gpointer data)
{
GestureData *gd = data;
const gchar *name;
Expand All @@ -271,7 +281,9 @@ begin_cb (CtkGesture *g, CdkEventSequence *sequence, gpointer data)
}

static void
end_cb (CtkGesture *g, CdkEventSequence *sequence, gpointer data)
end_cb (CtkGesture *g,
CdkEventSequence *sequence G_GNUC_UNUSED,
gpointer data)
{
GestureData *gd = data;
const gchar *name;
Expand All @@ -284,7 +296,9 @@ end_cb (CtkGesture *g, CdkEventSequence *sequence, gpointer data)
}

static void
update_cb (CtkGesture *g, CdkEventSequence *sequence, gpointer data)
update_cb (CtkGesture *g,
CdkEventSequence *sequence G_GNUC_UNUSED,
gpointer data)
{
GestureData *gd = data;
const gchar *name;
Expand Down

0 comments on commit 53b4559

Please sign in to comment.