Remove unused warning with G_GNUC_UNUSED attribute