Boost logo

Boost :

Subject: Re: [boost] [uuid] Unused variable warnings
From: Andy Tompkins (atompkins_at_[hidden])
Date: 2012-05-02 12:56:12


Hi,

On Fri, Apr 27, 2012, at 01:41 PM, Andrey Semashev wrote:
> Hi,
>
> With recent versions of boost I get lots of warnings like the
> following:
>
> /.../boost/uuid/seed_rng.hpp: In member function ‘void
> boost::uuids::detail::seed_rng::sha1_random_digest_()’:
> /.../boost/uuid/seed_rng.hpp:157:24: warning: variable ‘not_used’ set
> but not used [-Wunused-but-set-variable]
>
> I'm using GCC 4.6 with -Wall. It's trivial to mask this warning out by
> attaching __attribute__((unused)) to the variable, which I've done
> locally. Ok to commit?
>

This is great.

There is a ticket already about this.
https://svn.boost.org/trac/boost/ticket/6118. I don't have access to GCC
4.6, nor am I familiar with it and have not been able to solve this.

Would you create a patch? I wish to review it before saying "ok
to commit".

Regards,
Andy Tompkins


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk