[Boost-bugs] [Boost C++ Libraries] #3507: Patch to not to ignore fread and fseek return value

Subject: [Boost-bugs] [Boost C++ Libraries] #3507: Patch to not to ignore fread and fseek return value
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-10-04 17:09:49


#3507: Patch to not to ignore fread and fseek return value
------------------------------------------+---------------------------------
 Reporter: mloskot <mateusz@…> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: regex
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
------------------------------------------+---------------------------------
 While building the Boost inspect tool from trunk (r56576) , I noticed two
 warnings from the Boost Regex library:

 {{{
 ./../../libs/regex/src/../src/fileiter.cpp: In member function
  â€˜void boost::re_detail::mapfile::lock(char**) const’:
 ../../../libs/regex/src/../src/fileiter.cpp:263: warning: ignoring
  return value of ‘size_t fread(void*, size_t, size_t, FILE*)’,
  declared with attribute warn_unused_result
 ../../../libs/regex/src/../src/fileiter.cpp:265: warning: ignoring
  return value of ‘size_t fread(void*, size_t, size_t, FILE*)’,
  declared with attribute warn_unused_result
 }}}

 Here is patch that does not ignore fread and fseek return values.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3507>
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:01 UTC