Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77049 - trunk/boost/uuid
From: atompkins_at_[hidden]
Date: 2012-02-16 21:24:49


Author: atompkins
Date: 2012-02-16 21:24:48 EST (Thu, 16 Feb 2012)
New Revision: 77049
URL: http://svn.boost.org/trac/boost/changeset/77049

Log:
trying to get rid of all warnings with std::fread
Text files modified:
   trunk/boost/uuid/seed_rng.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/uuid/seed_rng.hpp
==============================================================================
--- trunk/boost/uuid/seed_rng.hpp (original)
+++ trunk/boost/uuid/seed_rng.hpp 2012-02-16 21:24:48 EST (Thu, 16 Feb 2012)
@@ -155,7 +155,7 @@
             {
                 // the not_used variable is to suppress warnings
                 size_t not_used = 0;
- not_used = std::fread( buffer, 1, 20, random_ );
+ 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