Commit 962ea1af authored by Philip Chimento's avatar Philip Chimento 🚮

tests: Mark unused function arguments with G_GNUC_UNUSED

These files are exported for other projects to compile, so they should
compile with as few compiler warnings as possible. If GJS or PyGObject
has -Wunused-parameter turned on, then there should not be warnings in
these files.
parent 4319e4f3
......@@ -1111,7 +1111,7 @@ gi_marshalling_tests_utf8_full_out (gchar **utf8)
* @utf8: (out) (transfer full):
*/
void
gi_marshalling_tests_utf8_dangling_out (gchar **utf8)
gi_marshalling_tests_utf8_dangling_out (gchar **utf8 G_GNUC_UNUSED)
{
/* Intentionally don't touch the pointer to see how
the bindings handle this case. Bindings should be
......@@ -1658,7 +1658,8 @@ gi_marshalling_tests_array_inout_etc (gint first, gint **ints, gint *length, gin
* @chars: (array):
*/
void
gi_marshalling_tests_array_in_nonzero_nonlen (gint first, const guint8 *chars)
gi_marshalling_tests_array_in_nonzero_nonlen (gint first G_GNUC_UNUSED,
const guint8 *chars)
{
g_assert (chars[0] == 'a');
g_assert (chars[1] == 'b');
......@@ -3530,9 +3531,12 @@ _closure_return_42 (void)
}
static void
_marshal_INT__VOID (GClosure *closure,
GValue *return_value,
guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data)
_marshal_INT__VOID (GClosure *closure,
GValue *return_value,
guint n_param_values G_GNUC_UNUSED,
const GValue *param_values G_GNUC_UNUSED,
gpointer invocation_hint G_GNUC_UNUSED,
gpointer marshal_data G_GNUC_UNUSED)
{
typedef gint (*GMarshalFunc_INT__VOID) (void);
register GMarshalFunc_INT__VOID callback;
......@@ -4120,7 +4124,7 @@ static void
G_DEFINE_TYPE (GIMarshallingTestsObject, gi_marshalling_tests_object, G_TYPE_OBJECT);
static void
gi_marshalling_tests_object_init (GIMarshallingTestsObject *object)
gi_marshalling_tests_object_init (GIMarshallingTestsObject *self G_GNUC_UNUSED)
{
}
......@@ -4210,7 +4214,8 @@ gi_marshalling_tests_object_new (gint int_)
}
GIMarshallingTestsObject *
gi_marshalling_tests_object_new_fail (gint int_, GError **error)
gi_marshalling_tests_object_new_fail (gint int_ G_GNUC_UNUSED,
GError **error)
{
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
......@@ -4227,7 +4232,9 @@ gi_marshalling_tests_object_new_fail (gint int_, GError **error)
* @ints: (array length=length):
*/
void
gi_marshalling_tests_object_method_array_in (GIMarshallingTestsObject *object, const gint *ints, gint length)
gi_marshalling_tests_object_method_array_in (GIMarshallingTestsObject *self G_GNUC_UNUSED,
const gint *ints,
gint length)
{
g_assert_cmpint (length, ==, 4);
g_assert_cmpint (ints[0], ==, -1);
......@@ -4241,7 +4248,9 @@ gi_marshalling_tests_object_method_array_in (GIMarshallingTestsObject *object, c
* @ints: (out) (array length=length) (transfer none):
*/
void
gi_marshalling_tests_object_method_array_out (GIMarshallingTestsObject *object, gint **ints, gint *length)
gi_marshalling_tests_object_method_array_out (GIMarshallingTestsObject *self G_GNUC_UNUSED,
gint **ints,
gint *length)
{
static gint values[] = { -1, 0, 1, 2 };
......@@ -4255,7 +4264,9 @@ gi_marshalling_tests_object_method_array_out (GIMarshallingTestsObject *object,
* @length: (inout):
*/
void
gi_marshalling_tests_object_method_array_inout (GIMarshallingTestsObject *object, gint **ints, gint *length)
gi_marshalling_tests_object_method_array_inout (GIMarshallingTestsObject *self G_GNUC_UNUSED,
gint **ints,
gint *length)
{
static gint values[] = { -2, -1, 0, 1, 2 };
......@@ -4275,7 +4286,8 @@ gi_marshalling_tests_object_method_array_inout (GIMarshallingTestsObject *object
* Returns: (array length=length):
*/
const gint *
gi_marshalling_tests_object_method_array_return (GIMarshallingTestsObject *object, gint *length)
gi_marshalling_tests_object_method_array_return (GIMarshallingTestsObject *self G_GNUC_UNUSED,
gint *length)
{
static gint ints[] = { -1, 0, 1, 2 };
......@@ -4359,8 +4371,9 @@ static void
* @callback_data: (allow-none):
*/
void
gi_marshalling_tests_object_vfunc_with_callback (GIMarshallingTestsObject *
object, GIMarshallingTestsCallbackIntInt callback, void *callback_data)
gi_marshalling_tests_object_vfunc_with_callback (GIMarshallingTestsObject *self G_GNUC_UNUSED,
GIMarshallingTestsCallbackIntInt callback G_GNUC_UNUSED,
void *callback_data G_GNUC_UNUSED)
{
}
......@@ -4731,7 +4744,8 @@ void
}
static void
_vfunc_in_object_destroy_callback (gboolean *destroy_called, GObject *where_the_object_was)
_vfunc_in_object_destroy_callback (gboolean *destroy_called,
GObject *where_the_object_was G_GNUC_UNUSED)
{
*destroy_called = TRUE;
}
......@@ -4807,7 +4821,7 @@ void
G_DEFINE_TYPE (GIMarshallingTestsSubObject, gi_marshalling_tests_sub_object, GI_MARSHALLING_TESTS_TYPE_OBJECT);
static void
gi_marshalling_tests_sub_object_init (GIMarshallingTestsSubObject *object)
gi_marshalling_tests_sub_object_init (GIMarshallingTestsSubObject *self G_GNUC_UNUSED)
{
}
......@@ -4848,18 +4862,19 @@ G_DEFINE_TYPE (GIMarshallingTestsSubSubObject,
gi_marshalling_tests_sub_sub_object, GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT);
static void
gi_marshalling_tests_sub_sub_object_init (GIMarshallingTestsSubSubObject *object)
gi_marshalling_tests_sub_sub_object_init (GIMarshallingTestsSubSubObject *self G_GNUC_UNUSED)
{
}
static void gi_marshalling_tests_sub_sub_object_class_init (GIMarshallingTestsSubSubObjectClass *klass)
static void gi_marshalling_tests_sub_sub_object_class_init (GIMarshallingTestsSubSubObjectClass *klass G_GNUC_UNUSED)
{
}
/* Interfaces */
static void
gi_marshalling_tests_interface_class_init (void *g_iface, void *data)
gi_marshalling_tests_interface_class_init (void *g_iface G_GNUC_UNUSED,
void *data G_GNUC_UNUSED)
{
}
......@@ -4907,7 +4922,8 @@ G_DEFINE_TYPE_WITH_CODE (GIMarshallingTestsInterfaceImpl, gi_marshalling_tests_i
G_IMPLEMENT_INTERFACE(GI_MARSHALLING_TESTS_TYPE_INTERFACE, test_interface_init))
static void
gi_marshalling_tests_interface_impl_test_int8_in (GIMarshallingTestsInterface *self, gint8 in)
gi_marshalling_tests_interface_impl_test_int8_in (GIMarshallingTestsInterface *self G_GNUC_UNUSED,
gint8 in G_GNUC_UNUSED)
{
}
......@@ -4917,12 +4933,12 @@ static void test_interface_init (GIMarshallingTestsInterfaceIface *iface)
}
static void
gi_marshalling_tests_interface_impl_init (GIMarshallingTestsInterfaceImpl *object)
gi_marshalling_tests_interface_impl_init (GIMarshallingTestsInterfaceImpl *self G_GNUC_UNUSED)
{
}
static void
gi_marshalling_tests_interface_impl_class_init (GIMarshallingTestsInterfaceImplClass *klass)
gi_marshalling_tests_interface_impl_class_init (GIMarshallingTestsInterfaceImplClass *klass G_GNUC_UNUSED)
{
}
......@@ -4938,7 +4954,8 @@ gi_marshalling_tests_interface_impl_get_as_interface (GIMarshallingTestsInterfac
}
static void
gi_marshalling_tests_interface2_class_init (void *g_iface, void *data)
gi_marshalling_tests_interface2_class_init (void *g_iface G_GNUC_UNUSED,
void *data G_GNUC_UNUSED)
{
}
......@@ -4959,7 +4976,8 @@ gi_marshalling_tests_interface2_get_type (void)
}
static void
gi_marshalling_tests_interface3_class_init (void *g_iface, void *data)
gi_marshalling_tests_interface3_class_init (void *g_iface G_GNUC_UNUSED,
void *data G_GNUC_UNUSED)
{
}
......@@ -5123,7 +5141,8 @@ gi_marshalling_tests_gerror (GError **error)
* @in_ints: (array zero-terminated):
*/
void
gi_marshalling_tests_gerror_array_in (gint *in_ints, GError **error)
gi_marshalling_tests_gerror_array_in (gint *in_ints G_GNUC_UNUSED,
GError **error)
{
GQuark quark = g_quark_from_static_string (GI_MARSHALLING_TESTS_CONSTANT_GERROR_DOMAIN);
g_set_error_literal (error, quark,
......@@ -5226,7 +5245,7 @@ gi_marshalling_tests_overrides_struct_new (void)
return g_slice_new (GIMarshallingTestsOverridesStruct);
}
glong gi_marshalling_tests_overrides_struct_method (GIMarshallingTestsOverridesStruct *struct_)
glong gi_marshalling_tests_overrides_struct_method (GIMarshallingTestsOverridesStruct *self G_GNUC_UNUSED)
{
return 42;
}
......@@ -5247,7 +5266,7 @@ gi_marshalling_tests_overrides_struct_returnv (void)
G_DEFINE_TYPE (GIMarshallingTestsOverridesObject, gi_marshalling_tests_overrides_object, G_TYPE_OBJECT);
static void
gi_marshalling_tests_overrides_object_init (GIMarshallingTestsOverridesObject *object)
gi_marshalling_tests_overrides_object_init (GIMarshallingTestsOverridesObject *self G_GNUC_UNUSED)
{
}
......@@ -5273,7 +5292,7 @@ gi_marshalling_tests_overrides_object_new (void)
return g_object_new (GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT, NULL);
}
glong gi_marshalling_tests_overrides_object_method (GIMarshallingTestsOverridesObject *object)
glong gi_marshalling_tests_overrides_object_method (GIMarshallingTestsOverridesObject *self G_GNUC_UNUSED)
{
return 42;
}
......@@ -5361,7 +5380,7 @@ enum
G_DEFINE_TYPE (GIMarshallingTestsPropertiesObject, gi_marshalling_tests_properties_object, G_TYPE_OBJECT);
static void gi_marshalling_tests_properties_object_init (GIMarshallingTestsPropertiesObject *self)
static void gi_marshalling_tests_properties_object_init (GIMarshallingTestsPropertiesObject *self G_GNUC_UNUSED)
{
}
......
This diff is collapsed.
......@@ -917,7 +917,8 @@ regress_test_array_int_none_out(int *len)
* @len: length
*/
void
regress_test_array_int_null_in (int *arr, int len)
regress_test_array_int_null_in (int *arr,
int len G_GNUC_UNUSED)
{
g_assert (arr == NULL);
}
......@@ -1737,7 +1738,7 @@ regress_test_struct_a_clone (RegressTestStructA *a,
*/
void
regress_test_struct_a_parse (RegressTestStructA *a_out,
const gchar *string)
const gchar *string G_GNUC_UNUSED)
{
a_out->some_int = 23;
}
......@@ -1947,7 +1948,7 @@ regress_test_boxed_equals (RegressTestBoxed *boxed,
}
void
regress_test_boxeds_not_a_method (RegressTestBoxed *boxed)
regress_test_boxeds_not_a_method (RegressTestBoxed *boxed G_GNUC_UNUSED)
{
}
......@@ -2279,7 +2280,8 @@ regress_test_obj_dispose (GObject *gobject)
}
static int
regress_test_obj_default_matrix (RegressTestObj *obj, const char *somestr)
regress_test_obj_default_matrix (RegressTestObj *obj G_GNUC_UNUSED,
const char *somestr G_GNUC_UNUSED)
{
return 42;
}
......@@ -2768,7 +2770,7 @@ regress_test_obj_init (RegressTestObj *obj)
* @obj: A #RegressTestObj
*/
RegressTestObj *
regress_test_obj_new (RegressTestObj *obj)
regress_test_obj_new (RegressTestObj *obj G_GNUC_UNUSED)
{
return g_object_new (REGRESS_TEST_TYPE_OBJ, NULL);
}
......@@ -2787,7 +2789,8 @@ regress_constructor (void)
* regress_test_obj_new_from_file:
*/
RegressTestObj *
regress_test_obj_new_from_file (const char *x, GError **error)
regress_test_obj_new_from_file (const char *x G_GNUC_UNUSED,
GError **error G_GNUC_UNUSED)
{
return g_object_new (REGRESS_TEST_TYPE_OBJ, NULL);
}
......@@ -2870,7 +2873,7 @@ regress_test_obj_emit_sig_with_inout_int (RegressTestObj *obj)
}
int
regress_test_obj_instance_method (RegressTestObj *obj)
regress_test_obj_instance_method (RegressTestObj *obj G_GNUC_UNUSED)
{
return -1;
}
......@@ -2898,7 +2901,7 @@ regress_test_obj_static_method (int x)
*
*/
void
regress_forced_method (RegressTestObj *obj)
regress_forced_method (RegressTestObj *obj G_GNUC_UNUSED)
{
}
......@@ -2914,7 +2917,7 @@ regress_forced_method (RegressTestObj *obj)
*
*/
void
regress_test_obj_torture_signature_0 (RegressTestObj *obj,
regress_test_obj_torture_signature_0 (RegressTestObj *obj G_GNUC_UNUSED,
int x,
double *y,
int *z,
......@@ -2941,7 +2944,7 @@ regress_test_obj_torture_signature_0 (RegressTestObj *obj,
* This function throws an error if m is odd.
*/
gboolean
regress_test_obj_torture_signature_1 (RegressTestObj *obj,
regress_test_obj_torture_signature_1 (RegressTestObj *obj G_GNUC_UNUSED,
int x,
double *y,
int *z,
......@@ -2976,15 +2979,15 @@ regress_test_obj_torture_signature_1 (RegressTestObj *obj,
* Returns: (skip): %TRUE if the call succeeds, %FALSE if @error is set.
*/
gboolean
regress_test_obj_skip_return_val (RegressTestObj *obj,
regress_test_obj_skip_return_val (RegressTestObj *obj G_GNUC_UNUSED,
gint a,
gint *out_b,
gdouble c,
gdouble c G_GNUC_UNUSED,
gint *inout_d,
gint *out_sum,
gint num1,
gint num2,
GError **error)
GError **error G_GNUC_UNUSED)
{
if (out_b != NULL)
*out_b = a + 1;
......@@ -3007,7 +3010,7 @@ regress_test_obj_skip_return_val (RegressTestObj *obj,
* Returns: (skip): %TRUE if the call succeeds, %FALSE if @error is set.
*/
gboolean
regress_test_obj_skip_return_val_no_out (RegressTestObj *obj,
regress_test_obj_skip_return_val_no_out (RegressTestObj *obj G_GNUC_UNUSED,
gint a,
GError **error)
{
......@@ -3036,15 +3039,15 @@ regress_test_obj_skip_return_val_no_out (RegressTestObj *obj,
* Returns: %TRUE if the call succeeds, %FALSE if @error is set.
*/
gboolean
regress_test_obj_skip_param (RegressTestObj *obj,
regress_test_obj_skip_param (RegressTestObj *obj G_GNUC_UNUSED,
gint a,
gint *out_b,
gdouble c,
gdouble c G_GNUC_UNUSED,
gint *inout_d,
gint *out_sum,
gint num1,
gint num2,
GError **error)
GError **error G_GNUC_UNUSED)
{
if (out_b != NULL)
*out_b = a + 1;
......@@ -3072,15 +3075,15 @@ regress_test_obj_skip_param (RegressTestObj *obj,
* Returns: %TRUE if the call succeeds, %FALSE if @error is set.
*/
gboolean
regress_test_obj_skip_out_param (RegressTestObj *obj,
regress_test_obj_skip_out_param (RegressTestObj *obj G_GNUC_UNUSED,
gint a,
gint *out_b,
gdouble c,
gdouble c G_GNUC_UNUSED,
gint *inout_d,
gint *out_sum,
gint num1,
gint num2,
GError **error)
GError **error G_GNUC_UNUSED)
{
if (out_b != NULL)
*out_b = a + 1;
......@@ -3108,15 +3111,15 @@ regress_test_obj_skip_out_param (RegressTestObj *obj,
* Returns: %TRUE if the call succeeds, %FALSE if @error is set.
*/
gboolean
regress_test_obj_skip_inout_param (RegressTestObj *obj,
regress_test_obj_skip_inout_param (RegressTestObj *obj G_GNUC_UNUSED,
gint a,
gint *out_b,
gdouble c,
gdouble c G_GNUC_UNUSED,
gint *inout_d,
gint *out_sum,
gint num1,
gint num2,
GError **error)
GError **error G_GNUC_UNUSED)
{
if (out_b != NULL)
*out_b = a + 1;
......@@ -3147,7 +3150,7 @@ regress_test_obj_do_matrix (RegressTestObj *obj, const char *somestr)
* @obj: (allow-none): A #RegressTestObj
*/
void
regress_func_obj_null_in (RegressTestObj *obj)
regress_func_obj_null_in (RegressTestObj *obj G_GNUC_UNUSED)
{
}
......@@ -3167,7 +3170,7 @@ regress_test_obj_null_out (RegressTestObj **obj)
* @obj: (nullable): A #RegressTestObj
*/
void
regress_func_obj_nullable_in (RegressTestObj *obj)
regress_func_obj_nullable_in (RegressTestObj *obj G_GNUC_UNUSED)
{
}
......@@ -3177,8 +3180,8 @@ regress_func_obj_nullable_in (RegressTestObj *obj)
* @input: (type GObject): some #GObject
*/
void
regress_test_obj_not_nullable_typed_gpointer_in (RegressTestObj *obj,
gpointer input)
regress_test_obj_not_nullable_typed_gpointer_in (RegressTestObj *obj G_GNUC_UNUSED,
gpointer input G_GNUC_UNUSED)
{
}
......@@ -3189,9 +3192,9 @@ regress_test_obj_not_nullable_typed_gpointer_in (RegressTestObj *obj,
* @count: length of @input
*/
void
regress_test_obj_not_nullable_element_typed_gpointer_in (RegressTestObj *obj,
gpointer input,
guint count)
regress_test_obj_not_nullable_element_typed_gpointer_in (RegressTestObj *obj G_GNUC_UNUSED,
gpointer input G_GNUC_UNUSED,
guint count G_GNUC_UNUSED)
{
}
......@@ -3200,7 +3203,7 @@ regress_test_obj_not_nullable_element_typed_gpointer_in (RegressTestObj *obj,
* @obj: A #RegressTestObj
*/
void
regress_test_obj_name_conflict (RegressTestObj *obj)
regress_test_obj_name_conflict (RegressTestObj *obj G_GNUC_UNUSED)
{
}
......@@ -3229,7 +3232,7 @@ struct _CallbackInfo
};
static void
regress_test_sub_obj_iface_init (RegressTestInterfaceIface *iface)
regress_test_sub_obj_iface_init (RegressTestInterfaceIface *iface G_GNUC_UNUSED)
{
}
......@@ -3307,7 +3310,7 @@ regress_test_sub_obj_class_init (RegressTestSubObjClass *klass)
}
static void
regress_test_sub_obj_init (RegressTestSubObj *obj)
regress_test_sub_obj_init (RegressTestSubObj *self G_GNUC_UNUSED)
{
}
......@@ -3318,7 +3321,7 @@ regress_test_sub_obj_new (void)
}
int
regress_test_sub_obj_instance_method (RegressTestSubObj *obj)
regress_test_sub_obj_instance_method (RegressTestSubObj *self G_GNUC_UNUSED)
{
return 0;
}
......@@ -3427,10 +3430,10 @@ regress_test_value_fundamental_object_peek_pointer (const GValue * value)
}
static gchar *
regress_test_value_fundamental_object_collect (GValue * value,
guint n_collect_values,
GTypeCValue * collect_values,
guint collect_flags)
regress_test_value_fundamental_object_collect (GValue *value,
guint n_collect_values,
GTypeCValue *collect_values,
guint collect_flags G_GNUC_UNUSED)
{
if (collect_values[0].v_pointer) {
value->data[0].v_pointer =
......@@ -3466,20 +3469,21 @@ regress_test_value_fundamental_object_lcopy (const GValue * value,
}
static void
regress_test_fundamental_object_finalize (RegressTestFundamentalObject * obj)
regress_test_fundamental_object_finalize (RegressTestFundamentalObject *self G_GNUC_UNUSED)
{
}
static RegressTestFundamentalObject *
regress_test_fundamental_object_copy_default (const RegressTestFundamentalObject * obj)
regress_test_fundamental_object_copy_default (const RegressTestFundamentalObject *self G_GNUC_UNUSED)
{
g_warning ("RegressTestFundamentalObject classes must implement RegressTestFundamentalObject::copy");
return NULL;
}
static void
regress_test_fundamental_object_class_init (gpointer g_class, gpointer class_data)
regress_test_fundamental_object_class_init (gpointer g_class,
gpointer class_data G_GNUC_UNUSED)
{
RegressTestFundamentalObjectClass *mo_class = REGRESS_TEST_FUNDAMENTAL_OBJECT_CLASS (g_class);
......@@ -3488,7 +3492,8 @@ regress_test_fundamental_object_class_init (gpointer g_class, gpointer class_dat
}
static void
regress_test_fundamental_object_init (GTypeInstance * instance, gpointer klass)
regress_test_fundamental_object_init (GTypeInstance *instance,
gpointer klass G_GNUC_UNUSED)
{
RegressTestFundamentalObject *fundamental_object = REGRESS_TEST_FUNDAMENTAL_OBJECT_CAST (instance);
......@@ -3604,7 +3609,7 @@ regress_test_fundamental_sub_object_class_init (RegressTestFundamentalSubObjectC
}
static void
regress_test_fundamental_sub_object_init(RegressTestFundamentalSubObject *object)
regress_test_fundamental_sub_object_init(RegressTestFundamentalSubObject *self G_GNUC_UNUSED)
{
}
......@@ -3640,12 +3645,12 @@ G_DEFINE_TYPE (RegressTestFundamentalHiddenSubObject,
REGRESS_TEST_TYPE_FUNDAMENTAL_OBJECT);
static void
regress_test_fundamental_hidden_sub_object_init (RegressTestFundamentalHiddenSubObject *object)
regress_test_fundamental_hidden_sub_object_init (RegressTestFundamentalHiddenSubObject *self G_GNUC_UNUSED)
{
}
static void
regress_test_fundamental_hidden_sub_object_class_init (RegressTestFundamentalHiddenSubObjectClass *klass)
regress_test_fundamental_hidden_sub_object_class_init (RegressTestFundamentalHiddenSubObjectClass *klass G_GNUC_UNUSED)
{
}
......@@ -3928,7 +3933,8 @@ regress_test_async_ready_callback (GAsyncReadyCallback callback)
*
**/
void
regress_test_obj_instance_method_callback (RegressTestObj *obj, RegressTestCallback callback)
regress_test_obj_instance_method_callback (RegressTestObj *self G_GNUC_UNUSED,
RegressTestCallback callback)
{
if (callback != NULL)
callback();
......@@ -4028,7 +4034,7 @@ regress_test_owned_gerror_callback (RegressTestCallbackOwnedGError callback)
* https://bugzilla.gnome.org/show_bug.cgi?id=685399
*/
void
regress_test_skip_unannotated_callback (RegressTestCallback callback)
regress_test_skip_unannotated_callback (RegressTestCallback callback G_GNUC_UNUSED)
{
}
......@@ -4201,7 +4207,7 @@ regress_test_floating_class_init (RegressTestFloatingClass *klass)
}
static void
regress_test_floating_init (RegressTestFloating *obj)
regress_test_floating_init (RegressTestFloating *self G_GNUC_UNUSED)
{
}
......@@ -4402,7 +4408,7 @@ regress_test_multiline_doc_comments (void)
* What we're testing here is that the scanner ignores the @a nested inside XML.
*/
void
regress_test_nested_parameter (int a)
regress_test_nested_parameter (int a G_GNUC_UNUSED)
{
}
......@@ -4411,7 +4417,7 @@ regress_test_nested_parameter (int a)
*
*/
void
regress_introspectable_via_alias (RegressPtrArrayAlias *data)
regress_introspectable_via_alias (RegressPtrArrayAlias *data G_GNUC_UNUSED)
{
}
......@@ -4420,7 +4426,7 @@ regress_introspectable_via_alias (RegressPtrArrayAlias *data)
*
*/
void
regress_not_introspectable_via_alias (RegressVaListAlias ok)
regress_not_introspectable_via_alias (RegressVaListAlias ok G_GNUC_UNUSED)
{
}
......@@ -4453,8 +4459,8 @@ regress_test_struct_fixed_array_frob (RegressTestStructFixedArray *str)
* libgnome-keyring.
*/
void
regress_has_parameter_named_attrs (int foo,
gpointer attributes)
regress_has_parameter_named_attrs (int foo G_GNUC_UNUSED,
gpointer attributes G_GNUC_UNUSED)
{
}
......
......@@ -22,7 +22,7 @@ typedef WarnLibWhateverIface WarnLibWhateverInterface;
G_DEFINE_INTERFACE (WarnLibWhatever, warnlib_whatever, G_TYPE_OBJECT)
static void
warnlib_whatever_default_init(WarnLibWhateverIface *iface)
warnlib_whatever_default_init(WarnLibWhateverIface *iface G_GNUC_UNUSED)
{
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment