Boost logo

Boost :

Subject: [boost] [uuid] Unused variable warnings
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2012-04-27 05:41:23


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?


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