Boost C++ Libraries: Ticket #3507: Patch to not to ignore fread and fseek return value https://svn.boost.org/trac10/ticket/3507 <p> While building the Boost inspect tool from trunk (<a class="changeset" href="https://svn.boost.org/trac10/changeset/56576" title="BOOST_FUSION_ADAPT_CLASS">r56576</a>) , I noticed two warnings from the Boost Regex library: </p> <pre class="wiki">./../../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 </pre><p> Here is patch that does not ignore fread and fseek return values. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3507 Trac 1.4.3 mloskot <mateusz@…> Sun, 04 Oct 2009 17:10:37 GMT attachment set https://svn.boost.org/trac10/ticket/3507 https://svn.boost.org/trac10/ticket/3507 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-regex-fread-return-check-r56576.patch</span> </li> </ul> <p> Patch with fread and fseek return value checks in regex library </p> Ticket mloskot <mateusz@…> Sun, 04 Oct 2009 17:32:14 GMT <link>https://svn.boost.org/trac10/ticket/3507#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3507#comment:1</guid> <description> <p> I've forgotten to add environment details: </p> <ul><li>I'm using GCC 4.3.3 on Linux Ubuntu 9.04 (Intel 64-bit) </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Fri, 30 Oct 2009 18:53:06 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3507#comment:2 https://svn.boost.org/trac10/ticket/3507#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in Trunk. Thanks, John. </p> Ticket