Subject: Re: [boost] [uuid] Unused variable warnings
From: Andy Tompkins (atompkins_at_[hidden])
Date: 2012-05-02 12:56:12
On Fri, Apr 27, 2012, at 01:41 PM, Andrey Semashev wrote:
> With recent versions of boost I get lots of warnings like the
> /.../boost/uuid/seed_rng.hpp: In member function âvoid
> /.../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