Skip to content

Commit

Permalink
derive: add G_GNUC_UNUSED in unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed Nov 18, 2024
1 parent b032d4e commit bad102a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions testsuite/a11y/derive.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ typedef CtkButtonAccessibleClass MyButtonAccessibleClass;
G_DEFINE_TYPE (MyButtonAccessible, my_button_accessible, CTK_TYPE_BUTTON_ACCESSIBLE)

static void
my_button_accessible_init (MyButtonAccessible *a)
my_button_accessible_init (MyButtonAccessible *a G_GNUC_UNUSED)
{
}

static void
my_button_accessible_class_init (MyButtonAccessibleClass *class)
my_button_accessible_class_init (MyButtonAccessibleClass *class G_GNUC_UNUSED)
{
}

Expand All @@ -46,7 +46,7 @@ typedef CtkButtonClass MyButtonClass;
G_DEFINE_TYPE (MyButton, my_button, CTK_TYPE_BUTTON)

static void
my_button_init (MyButton *b)
my_button_init (MyButton *b G_GNUC_UNUSED)
{
}

Expand All @@ -57,7 +57,8 @@ my_button_class_init (MyButtonClass *class)
my_button_accessible_get_type ());
}

int main (int argc, char *argv[])
int main (int argc G_GNUC_UNUSED,
char *argv[] G_GNUC_UNUSED)
{
CtkWidget *widget;
CtkAccessible *accessible;
Expand Down

0 comments on commit bad102a

Please sign in to comment.