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 694187 - double-typed constant where enum is expected
double-typed constant where enum is expected
Status: RESOLVED FIXED
Product: clutter
Classification: Platform
Component: ClutterActor
git master
Other Linux
: Normal trivial
: ---
Assigned To: clutter-maint
clutter-maint
Depends on:
Blocks:
 
 
Reported: 2013-02-19 16:38 UTC by Josselin Mouette
Modified: 2013-02-20 23:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix return value type for clutter_actor_get_z_rotation_gravity (377 bytes, patch)
2013-02-19 16:38 UTC, Josselin Mouette
committed Details | Review

Description Josselin Mouette 2013-02-19 16:38:49 UTC
Created attachment 236788 [details] [review]
Fix return value type for clutter_actor_get_z_rotation_gravity

Original report by Michael Tautschnig: http://bugs.debian.org/700931

“While building the package using our research compiler infrastructure, which
also performs more strict type checking, we noticed the following possible
problem:

Function clutter_actor_get_z_rotation_gravity of clutter/clutter-actor.c returns
0.0 in case of an error, while it is expected to return an enum-typed value.

The constant should be 0 instead, to be of type int.”
Comment 1 Emmanuele Bassi (:ebassi) 2013-02-20 23:34:48 UTC
Thanks!

I modified the patch to return the actual enumeration value, instead of just zero.