|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r76402 - branches/release/boost/uuid
From: atompkins_at_[hidden]
Date: 2012-01-10 19:57:19
Author: atompkins
Date: 2012-01-10 19:57:19 EST (Tue, 10 Jan 2012)
New Revision: 76402
URL: http://svn.boost.org/trac/boost/changeset/76402
Log:
ticket #6118
does not completely solve the warning but helps
Text files modified:
branches/release/boost/uuid/seed_rng.hpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Modified: branches/release/boost/uuid/seed_rng.hpp
==============================================================================
--- branches/release/boost/uuid/seed_rng.hpp (original)
+++ branches/release/boost/uuid/seed_rng.hpp 2012-01-10 19:57:19 EST (Tue, 10 Jan 2012)
@@ -153,7 +153,9 @@
if(random_)
{
- std::fread( buffer, 1, 20, random_ );
+ // the not_used variable is to suppress warnings
+ size_t not_used = 0;
+ not_used = std::fread( buffer, 1, 20, random_ );
}
// using an uninitialized buffer[] if fopen fails
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