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-12-17 02:07:31
#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 atompkins):
Please allow me to rephrase.[[BR]]
As it is, one gets the warning that the return value of std::fread is
ignored.[[BR]]
If it is changed to:[[BR]]
{{{
size_t not_used = std::fread( ... );
}}}
[[BR]]
then one gets the warning that ''not_used'' is an unused variable[[BR]]
but the following will have no warnings?:[[BR]]
{{{
(void) fread( ... );
}}}
I checked this into trunk (commit 76007). Please let me know if this does
indeed suppress all warnings.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6118#comment:3> 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:08 UTC