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 759758 - build failure with clang, converting one enum type to another
build failure with clang, converting one enum type to another
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-editing-services
git master
Other FreeBSD
: Normal normal
: 1.7.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-12-21 21:06 UTC by Koop Mast (kwm)
Modified: 2015-12-22 09:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Koop Mast (kwm) 2015-12-21 21:06:23 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
Comment 1 Sebastian Dröge (slomo) 2015-12-22 09:01:00 UTC
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