Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76007 - trunk/boost/uuid
From: atompkins_at_[hidden]
Date: 2011-12-16 21:06:38


Author: atompkins
Date: 2011-12-16 21:06:37 EST (Fri, 16 Dec 2011)
New Revision: 76007
URL: http://svn.boost.org/trac/boost/changeset/76007

Log:
Suppress warning with gcc. Ticket #6118
Text files modified:
   trunk/boost/uuid/seed_rng.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/boost/uuid/seed_rng.hpp
==============================================================================
--- trunk/boost/uuid/seed_rng.hpp (original)
+++ trunk/boost/uuid/seed_rng.hpp 2011-12-16 21:06:37 EST (Fri, 16 Dec 2011)
@@ -153,7 +153,8 @@
 
             if(random_)
             {
- std::fread( buffer, 1, 20, random_ );
+ // the cast to void is to suppress warnings
+ (void)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