Skip to content

Commit

Permalink
testforeign: add G_GNUC_UNUSED in unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed Nov 3, 2024
1 parent fa47591 commit 6fc10c0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/testforeign.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ update_ui (void)
}

static void
exported_callback (CdkWindow *window,
exported_callback (CdkWindow *window G_GNUC_UNUSED,
const char *handle,
gpointer user_data)
gpointer user_data G_GNUC_UNUSED)
{
if (!export_handle)
export_handle = g_strdup (handle);
Expand All @@ -40,8 +40,8 @@ exported_callback (CdkWindow *window,
}

static void
export_callback (CtkWidget *widget,
gpointer data)
export_callback (CtkWidget *widget G_GNUC_UNUSED,
gpointer data G_GNUC_UNUSED)
{
if (!cdk_wayland_window_export_handle (ctk_widget_get_window (window),
exported_callback,
Expand All @@ -52,8 +52,8 @@ export_callback (CtkWidget *widget,
}

static void
unexport_callback (CtkWidget *widget,
gpointer data)
unexport_callback (CtkWidget *widget G_GNUC_UNUSED,
gpointer data G_GNUC_UNUSED)
{
cdk_wayland_window_unexport_handle (ctk_widget_get_window (window));

Expand Down

0 comments on commit 6fc10c0

Please sign in to comment.