Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6118: Uuid random_generator compiles with warnings by GCC
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-11-22 12:37:42
#6118: Uuid random_generator compiles with warnings by GCC
----------------------------------------------+-----------------------------
Reporter: Vasily Sukhanov <basil@â¦> | Owner: atompkins
Type: Bugs | Status: new
Milestone: To Be Determined | Component: uuid
Version: Boost 1.47.0 | Severity: Problem
Resolution: | Keywords: warning gcc
----------------------------------------------+-----------------------------
Comment (by anonymous):
What about casting to void the call to fread?
{{{#!c
(void) fread(...)
}}}
This should suppress the warning without adding the extra cost to check
the value returned by fread.
Otherwise, there is a patch that check this value here:
http://boost.2283326.n4.nabble.com/PATCH-1-2-Fixed-warning-ignoring-
return-value-of-size-t-fread-void-size-t-size-t-FILE-td3145963.html
with the disadvantage of adding another warning when suppressing the
BOOST_ASSERT.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6118#comment:2> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC