Issue 122044 - [Sidebar] Use of boost::variant causes compiler warning
Summary: [Sidebar] Use of boost::variant causes compiler warning
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 4.0.0-dev
Hardware: All Linux, all
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks: SidebarEnhancement sidebar400-dev
  Show dependency tree
 
Reported: 2013-04-12 13:51 UTC by Andre
Modified: 2020-03-04 08:45 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andre 2013-04-12 13:51:08 UTC

    
Comment 1 Andre 2013-04-12 13:52:53 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
Comment 2 Pedro Giffuni 2013-04-13 05:17:01 UTC
...
>
> 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
Comment 3 Andre 2013-05-10 13:25:46 UTC
The comments in the boost issue indicate that the fix did not make it into 1.48
Comment 4 Andre 2013-05-13 15:49:12 UTC
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?
Comment 5 Andre 2013-05-13 16:07:49 UTC
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.
Comment 6 Marcus 2017-05-20 11:28:09 UTC
Reset assigne to the default "issues@openoffice.apache.org".