rdiankov / collada-dom

COLLADA Document Object Model (DOM) C++ Library
78 stars 40 forks source link

build fails with GCC 6.0 #22

Closed morxa closed 8 years ago

morxa commented 8 years ago

Due to stricter type checking, collada-dom fails to build with GCC 6.0:

/builddir/build/BUILD/collada-dom-2.4.4/dom/src/dae/daeMetaGroup.cpp:29:10: error: cannot convert 'bool' to 'daeElement*' in return
   return false;
          ^~~~~

It looks like the new GCC release does not allow implicit type conversions of this kind anymore.

The bug was found during a Fedora mass rebuild for Fedora 24. See RedHat Bugzilla and the Full build log for details.

rdiankov commented 8 years ago

thanks! pushed here 8e65676c1cbecde1c0c4d8c2e1cfb20fc49c410b

morxa commented 8 years ago

Thanks for fixing this!