id summary reporter owner description type status milestone component version severity resolution keywords cc 6118 Uuid random_generator compiles with warnings by GCC Vasily Sukhanov Andy Tompkins "uuids::random_generator constructor emits warning when compiled with GCC: >g++ -O2 -Wall -Werror uuidTest.cpp[[BR]] On Linux x86_64, gcc 4.5.2 output is /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:53: error: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result Cross gcc 4.5.3 (Linux -> Solaris) and gcc 4.6.1 (Linux -> AIX) produce In file included from testBoostUuid.cpp:3:0: /emc/sukhav/cross/boost_1_47_0/boost/uuid/seed_rng.hpp: In constructor ‘boost::uuids::basic_random_generator::basic_random_generator() [with UniformRandomNumberGenerator = boost::random::mersenne_twister_engine]’: /emc/sukhav/cross/boost_1_47_0/boost/uuid/seed_rng.hpp:243:34: error: ‘end.boost::uuids::detail::generator_iterator::m_value’ may be used uninitialized in this function [-Werror=uninitialized] Latter warning is regression. Compilation passes with boost 1.46.1. Probably, it's caused by some changes in Random library." Bugs closed To Be Determined uuid Boost 1.47.0 Problem fixed warning gcc jonathan.jones@…