Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6118: Uuid random_generator compiles with warnings by GCC
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-03-18 06:58:21
#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 markus@â¦):
Happy it's fixed, but I think a clearer fix would be:
inline void ignore_size(size_t s){}
...
ignore_size(std::fread(...));
This won't ever generate instructions or be 'outed' by a compiler as a
null operation.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6118#comment:10> 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:09 UTC