summaryrefslogtreecommitdiff
path: root/tests/methods
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2023-02-05 19:33:15 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2023-02-05 20:05:32 +0100
commit0771248fd47770e0d25d139143de41eb16a6ee07 (patch)
tree711ab83e07a12afed1d53646d2eb669ae74878dd /tests/methods
parentfe1633c15bc5a572ba45b59c7612a3eb352503f2 (diff)
downloadvala-0771248fd47770e0d25d139143de41eb16a6ee07.tar.gz
codegen: Cast vfunc of property accessors by using cast_method_pointer()
Found by -Wincompatible-function-pointer-types See https://gitlab.gnome.org/GNOME/vala/issues/1408
Diffstat (limited to 'tests/methods')
-rw-r--r--tests/methods/array-length-type.c-expected8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/methods/array-length-type.c-expected b/tests/methods/array-length-type.c-expected
index 1f9c4e213..294185b86 100644
--- a/tests/methods/array-length-type.c-expected
+++ b/tests/methods/array-length-type.c-expected
@@ -734,8 +734,8 @@ foo_class_init (FooClass * klass,
g_type_class_adjust_private_offset (klass, &Foo_private_offset);
((FooClass *) klass)->get_bar = (gint* (*) (Foo*, guint8*)) foo_real_get_bar;
((FooClass *) klass)->set_bar = (void (*) (Foo*, gint**, guint8*)) foo_real_set_bar;
- FOO_CLASS (klass)->get_manar = foo_real_get_manar;
- FOO_CLASS (klass)->set_manar = foo_real_set_manar;
+ FOO_CLASS (klass)->get_manar = (gint* (*) (Foo*, guint8*)) foo_real_get_manar;
+ FOO_CLASS (klass)->set_manar = (void (*) (Foo*, gint*, guint8)) foo_real_set_manar;
}
static void
@@ -1031,8 +1031,8 @@ bar_class_init (BarClass * klass,
g_type_class_adjust_private_offset (klass, &Bar_private_offset);
((FooClass *) klass)->get_bar = (gint* (*) (Foo*, guint8*)) bar_real_get_bar;
((FooClass *) klass)->set_bar = (void (*) (Foo*, gint**, guint8*)) bar_real_set_bar;
- FOO_CLASS (klass)->get_manar = bar_real_get_manar;
- FOO_CLASS (klass)->set_manar = bar_real_set_manar;
+ FOO_CLASS (klass)->get_manar = (gint* (*) (Foo*, guint8*)) bar_real_get_manar;
+ FOO_CLASS (klass)->set_manar = (void (*) (Foo*, gint*, guint8)) bar_real_set_manar;
}
static void