After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 624139 - C code from overriding Clutter.Actor.allocate produces warning
C code from overriding Clutter.Actor.allocate produces warning
Status: RESOLVED OBSOLETE
Product: vala
Classification: Core
Component: Code Generator
0.8.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-07-12 07:38 UTC by James Moschou
Modified: 2018-05-22 13:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case (235 bytes, text/x-vala)
2010-07-12 07:38 UTC, James Moschou
Details

Description James Moschou 2010-07-12 07:38:23 UTC
Created attachment 165711 [details]
Test case

(vala 0.8.0-0ubuntu1)

STR:
Subclass Clutter.Actor
Override the allocate method with:
    public override void allocate (ActorBox box, AllocationFlags flags)
Compile class

Result:
produces warning in C code
    warning: assignment from incompatible pointer type

static void test_class_init (TestClass * klass) {
	test_parent_class = g_type_class_peek_parent (klass);
	CLUTTER_ACTOR_CLASS (klass)->allocate = test_real_allocate; // <-- Here
}


Compile test case with:
valac Test.vala --pkg clutter-1.0 --save-temps
Comment 1 GNOME Infrastructure Team 2018-05-22 13:41:41 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/120.