Boost logo

Boost Users :

From: Gottlob Frege (gottlobfrege_at_[hidden])
Date: 2006-10-10 15:22:16


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?

Tony

On 10/9/06, Michael Marcin <mike_at_[hidden]> wrote:
>
> Hi,
>
> I'm using a few day old RC_1_34_0 from cvs.
>
> In boost\function\function_base.hpp I get a warning message that is
> quite annoying so I went in to remove it.
>
> The thing is I don't understand what it is complaining about.
> It gives this warning message:
>
> boost/function/function_base.hpp(287) : warning C4189: 'out_functor' :
> local variable is initialized but not referenced
>
>
> But the code is:
>
> functor_type* out_functor =
> reinterpret_cast<functor_type*>(&out_buffer.data);
> // Some compilers (Borland, vc6, ...) are unhappy with ~functor_type.
> out_functor->~Functor();
>
> which looks a lot like it is referencing out_functor to me.. can this
> warning be disabled
>
> This warning shows up in several places like when compiling program
> options source. Although we don't have a strict 0 warning policy the
> simple line:
>
> boost::signal< void () > g_signal;
>
> generates a 83 line warning message for me which makes it much more
> difficult to glance at the output window and find helpful warnings.
>
> Thanks,
>
> Michael Marcin
>
> _______________________________________________
> 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