Apache OpenOffice (AOO) Bugzilla – Issue 122044
[Sidebar] Use of boost::variant causes compiler warning
Last modified: 2020-03-04 08:45:43 UTC
This was found by Pavel. The warning looks like this: sfx2/source/sidebar/SidebarController cc1plus: warnings being treated as errors /Users/pavel/BUILD/BuildDir/ooo_trunk_src/solver/400/unxmacxi.pro/inc/boost/aligned_storage.hpp:90: warning: enumeral and non-enumeral type in conditional expression /Users/pavel/BUILD/BuildDir/ooo_trunk_src/solver/400/unxmacxi.pro/inc/boost/aligned_storage.hpp: In instantiation of ‘boost::aligned_storage<4ul, 4ul>’: /Users/pavel/BUILD/BuildDir/ooo_trunk_src/solver/400/unxmacxi.pro/inc/boost/variant/variant.hpp:1170: instantiated from ‘boost::variant<Color, Gradient, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_>’ /Users/pavel/BUILD/BuildDir/ooo_trunk_src/sfx2/source/sidebar/Paint.hxx:78: instantiated from here /Users/pavel/BUILD/BuildDir/ooo_trunk_src/solver/400/unxmacxi.pro/inc/boost/aligned_storage.hpp:90: warning: enumeral and non-enumeral type in conditional expression make: *** [/Users/pavel/BUILD/BuildDir/ooo_trunk_src/solver/400/unxmacxi.pro/workdir/CxxObject/sfx2/source/sidebar/SidebarController.o] Error 1 dmake: Error code 2, while making 'all' ERROR: error 65280 occurred while making /Users/pavel/BUILD/BuildDir/ooo_trunk_src/sfx2/prj A patch to resolve this exists in the boost bug tracker: https://svn.boost.org/trac/boost/ticket/4297
... > > A patch to resolve this exists in the boost bug tracker: > https://svn.boost.org/trac/boost/ticket/4297 It appears that ticket was closed for boost 1.48, which is what we usee by default (?). BTW, while hunting patches you may want to look at these, which are known to cause trouble to clang: https://svn.boost.org/trac/boost/changeset/78286 https://svn.boost.org/trac/boost/changeset/79575 https://svn.boost.org/trac/boost/changeset/79732
The comments in the boost issue indicate that the fix did not make it into 1.48
I just tried to reproduce these warnings and could not (tried Ubuntu 10.04 and 12.04). What do I have to do to see the warning/error again?
I was able to reproduce the warnings on MacOSX. Looked at the two patches attached to ticket 4297. The second, smaller one, has apparently already been applied (in slightly different form). It does not make the warnings go away. The first and larger one is not applicable to boost 1.48, so I don't know it works. For now I will remove the blocking status of bug 121420.
Reset assigne to the default "issues@openoffice.apache.org".