Re: [Boost-bugs] [Boost C++ Libraries] #6118: Uuid random_generator compiles with warnings by GCC

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 12:53:57


#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 Vasily Sukhanov <basil@…>):

 Doesn't solve problem. GCC 4.5.2 reports

 cc1plus: warnings being treated as errors
 In file included from
 /home/vasily/boost_1_47_0/boost/uuid/random_generator.hpp:12:0,
                  from uuidTest.cpp:1:
 /home/vasily/boost_1_47_0/boost/uuid/seed_rng.hpp: In member function
 â€˜void boost::uuids::detail::seed_rng::sha1_random_digest_()’:
 /home/vasily/boost_1_47_0/boost/uuid/seed_rng.hpp:152:51: error: value
 computed is not used
 /home/vasily/boost_1_47_0/boost/uuid/seed_rng.hpp:152:51: error: ignoring
 return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared
 with attribute warn_unused_result

 I am concerned more about second warning on Solaris and AIX.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6118#comment:4>
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