Boost logo

Boost Users :

From: Gottlob Frege (gottlobfrege_at_[hidden])
Date: 2006-10-13 13:16:08


On 10/12/06, Peter Dimov <pdimov_at_[hidden]> wrote:
>
> Gottlob Frege wrote:
> > On 10/10/06, Peter Dimov <pdimov_at_[hidden]> wrote:
> >>
> >> Gottlob Frege wrote:
> >>> I'd like to chime in to increase the strength of the voice - I also
> >>> get lots of warnings from boost which I'd like to remove, in order
> >>> to see the forest for the trees. In my case, it is typically boost
> >>> placeholders - _1, _2, _3,... and the warning is about unused
> >>> globals.
> >>>
> >>> Is there a way we can get fixes for these and reduce the warnings
> >>> coming from boost?
> >>
> >> Posting specific details will be most helpful.
> >
> >
> > including boost/bind/placeholders.hpp into a cpp file, under Xcode
> > 2.3 (gcc 4.0) gives you:
> >
> > warning: '<unnamed>::_2' defined but not used
> > warning: '<unnamed>::_3' defined but not used
> > ...
> > all the way up to _9 (in my case _1 was being used).
>
> g++ 3.x gave this warning for statics but not for unnamed namespace
> globals,
> it appears that they fixed it in 4. :-)
>
> You can try applying:
>
>
> http://boost.cvs.sourceforge.net/boost/boost/boost/bind/placeholders.hpp?r1=1.13&r2=1.14
>
> This is a fix for a problem with g++ precompiled headers, but it should
> take
> care of the warning as well.

Yep that fixes the warning. Seems odd that gcc ends up with the same fix as
borland (as they tend to be miles apart). Are there any downsides to the
fix? Is it going to end up in an official release at some point?

_______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net