GNOME Bugzilla – Bug 759758
build failure with clang, converting one enum type to another
Last modified: 2015-12-22 09:01:00 UTC
Build fails on FreeBSD with clang 3.4.1 CC libges_1.0_la-ges-group.lo CC libges_1.0_la-ges-validate.lo ges-validate.c:237:22: error: implicit conversion from enumeration type 'GESEdge' to different enumeration type 'GESEditMode' [-Werror,-Wenum-conversion] GESEditMode edge = GES_EDGE_NONE; ~~~~ ^~~~~~~~~~~~~ ges-validate.c:277:41: error: implicit conversion from enumeration type 'GESEditMode' to different enumeration type 'GESEdge' [-Werror,-Wenum-conversion] new_layer_priority, mode, edge, position))) { ^~~~ 2 errors generated. Makefile:1351: recipe for target 'libges_1.0_la-ges-validate.lo' failed
commit 9deaacbe340909f9a87855161cbb59d38a369004 Author: Sebastian Dröge <sebastian@centricular.com> Date: Tue Dec 22 09:58:06 2015 +0100 ges-validate: Fix compiler warning caused by usage of wrong enum type ges-validate.c:237:22: error: implicit conversion from enumeration type 'GESEdge' to different enumeration type 'GESEditMode' [-Werror,-Wenum-conversion] GESEditMode edge = GES_EDGE_NONE; ~~~~ ^~~~~~~~~~~~~ ges-validate.c:277:41: error: implicit conversion from enumeration type 'GESEditMode' to different enumeration type 'GESEdge' [-Werror,-Wenum-conversion] new_layer_priority, mode, edge, position))) { ^~~~ https://bugzilla.gnome.org/show_bug.cgi?id=759758