Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78237 - trunk/boost/uuid
From: andrey.semashev_at_[hidden]
Date: 2012-04-28 07:24:26


Author: andysem
Date: 2012-04-28 07:24:24 EDT (Sat, 28 Apr 2012)
New Revision: 78237
URL: http://svn.boost.org/trac/boost/changeset/78237

Log:
Silenced GCC warnings about an initialized but not used variable.
Text files modified:
   trunk/boost/uuid/seed_rng.hpp | 3 +++
   1 files changed, 3 insertions(+), 0 deletions(-)

Modified: trunk/boost/uuid/seed_rng.hpp
==============================================================================
--- trunk/boost/uuid/seed_rng.hpp (original)
+++ trunk/boost/uuid/seed_rng.hpp 2012-04-28 07:24:24 EDT (Sat, 28 Apr 2012)
@@ -154,6 +154,9 @@
             if(random_)
             {
                 // the not_used variable is to suppress warnings
+#if defined(__GNUC__)
+ __attribute__((unused))
+#endif
                 size_t not_used = 0;
                 not_used += std::fread( buffer, 1, 20, random_ );
             }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk