Boost C++ Libraries: Ticket #1509: [functional/hash] VC8.0 compiler warning https://svn.boost.org/trac10/ticket/1509 <p> When i build my project in VC8.0 with warning level 4 and code analysis enabled, i get the following warning: </p> <pre class="wiki">44&gt;e:\development\safemail32\external\boost\boost\functional\detail\hash_float.hpp(121) : warning C6294: Ill-defined for-loop: initial condition does not satisfy test. Loop body not executed 44&gt; E:\Development\SAFEmail32\External\Boost\boost/functional/detail/hash_float.hpp(178) : see reference to function template instantiation 'size_t boost::hash_detail::float_hash_impl&lt;T&gt;(T)' being compiled 44&gt; with 44&gt; [ 44&gt; T=float 44&gt; ] 44&gt; E:\Development\SAFEmail32\External\Boost\boost/functional/hash/hash.hpp(304) : see reference to function template instantiation 'size_t boost::hash_detail::float_hash_value&lt;float&gt;(T)' being compiled 44&gt; with 44&gt; [ 44&gt; T=float 44&gt; ] </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1509 Trac 1.4.3 Daniel James Sat, 08 Dec 2007 11:04:41 GMT <link>https://svn.boost.org/trac10/ticket/1509#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1509#comment:1</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/41864" title="Try to suppress a Visual C++ warning. Refs #1509 ">[41864]</a>) Try to suppress a Visual C++ warning. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1509" title="#1509: Bugs: [functional/hash] VC8.0 compiler warning (closed: fixed)">#1509</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Sat, 08 Dec 2007 11:07:51 GMT</pubDate> <title>status, milestone changed https://svn.boost.org/trac10/ticket/1509#comment:2 https://svn.boost.org/trac10/ticket/1509#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.35.0</span> </li> </ul> <p> Thanks for reporting this. Please can you check if the above change has fixed it. Also, can you let me know which flags are required to get this warning. </p> Ticket Richard Webb <richard.webb@…> Sat, 08 Dec 2007 11:59:39 GMT <link>https://svn.boost.org/trac10/ticket/1509#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1509#comment:3</guid> <description> <p> C6294 is a code analysis warning. I can get it by simply creating a new project, including functional/hash.hpp, and building with the code analysis option enabled (only available in some versions of the compiler - you might not be able to reproduce it with the Express edition). </p> <p> The change has fixed the warning on VC8, but has also resulted in a new warning on VC7.1 (as C6294 doesnt exist in that version of the compiler).<br /> </p> <p> I think that it only needs to be disabled for VC8/9? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Sat, 08 Dec 2007 12:24:36 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1509#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1509#comment:4</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/41866" title="Only suppress warning for Visual C++ 8 and later. Refs #1509 ">[41866]</a>) Only suppress warning for Visual C++ 8 and later. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1509" title="#1509: Bugs: [functional/hash] VC8.0 compiler warning (closed: fixed)">#1509</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Eric Niebler</dc:creator> <pubDate>Sun, 09 Dec 2007 02:45:27 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1509#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1509#comment:5</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/41916" title="Merged revisions 41816-41915 via svnmerge from ...">[41916]</a>) Merged revisions 41816-41915 via svnmerge from <a class="ext-link" href="https://svn.boost.org/svn/boost/trunk"><span class="icon">​</span>https://svn.boost.org/svn/boost/trunk</a> </p> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41819" title="fixed order of comparison in timeout check">r41819</a> | anthonyw | 2007-12-07 00:11:11 -0800 (Fri, 07 Dec 2007) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> fixed order of comparison in timeout check </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41823" title="Try to fix stall when sending large amounts of data over SSL. ">r41823</a> | chris_kohlhoff | 2007-12-07 04:53:39 -0800 (Fri, 07 Dec 2007) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Try to fix stall when sending large amounts of data over SSL. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41830" title="Added markup for various statechart failures.">r41830</a> | andreas_huber69 | 2007-12-07 11:03:46 -0800 (Fri, 07 Dec 2007) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Added markup for various statechart failures. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41842" title="Fix msvc auto-configuration (yikes!) ">r41842</a> | dave | 2007-12-07 15:23:39 -0800 (Fri, 07 Dec 2007) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Fix msvc auto-configuration (yikes!) </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41845" title="Documentation fixes. ">r41845</a> | chris_kohlhoff | 2007-12-07 16:18:59 -0800 (Fri, 07 Dec 2007) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Documentation fixes. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41863" title="Added markup for various statechart failures.">r41863</a> | andreas_huber69 | 2007-12-08 02:05:41 -0800 (Sat, 08 Dec 2007) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Added markup for various statechart failures. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41864" title="Try to suppress a Visual C++ warning. Refs #1509 ">r41864</a> | danieljames | 2007-12-08 03:04:40 -0800 (Sat, 08 Dec 2007) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Try to suppress a Visual C++ warning. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1509" title="#1509: Bugs: [functional/hash] VC8.0 compiler warning (closed: fixed)">#1509</a> </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41866" title="Only suppress warning for Visual C++ 8 and later. Refs #1509 ">r41866</a> | danieljames | 2007-12-08 04:24:36 -0800 (Sat, 08 Dec 2007) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Only suppress warning for Visual C++ 8 and later. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1509" title="#1509: Bugs: [functional/hash] VC8.0 compiler warning (closed: fixed)">#1509</a> </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41867" title="Documentation fixes. ">r41867</a> | chris_kohlhoff | 2007-12-08 05:00:45 -0800 (Sat, 08 Dec 2007) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Documentation fixes. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41868" title="Suppress signed/unsigned warning. ">r41868</a> | chris_kohlhoff | 2007-12-08 05:48:52 -0800 (Sat, 08 Dec 2007) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Suppress signed/unsigned warning. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41870" title="Ensure asio header comes before boost.thread header. ">r41870</a> | chris_kohlhoff | 2007-12-08 06:03:40 -0800 (Sat, 08 Dec 2007) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Ensure asio header comes before boost.thread header. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41889" title="Removed double quoting of Doxygen title. Fixes: ...">r41889</a> | johnmaddock | 2007-12-08 08:04:54 -0800 (Sat, 08 Dec 2007) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Removed double quoting of Doxygen title. Fixes: <a class="ext-link" href="http://lists.boost.org/boost-users/2007/12/32523.php"><span class="icon">​</span>http://lists.boost.org/boost-users/2007/12/32523.php</a> </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41907" title="Add support for QtScript library. ">r41907</a> | jhunold | 2007-12-08 12:02:33 -0800 (Sat, 08 Dec 2007) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Add support for <a class="missing wiki">QtScript</a> library. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41908" title="Add dependency scanner for Qt Resource Files (.qrc). ">r41908</a> | jhunold | 2007-12-08 12:08:29 -0800 (Sat, 08 Dec 2007) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Add dependency scanner for Qt Resource Files (.qrc). </p> </blockquote> <p> ........ </p> </description> <category>Ticket</category> </item> <item> <author>Richard Webb <richard.webb@…></author> <pubDate>Sun, 09 Dec 2007 15:33:08 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1509#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1509#comment:6</guid> <description> <p> With the latest change the original warning is gone in VC8/9, and there is no longer an issue with VC7.1. </p> <p> Thanks for the fix. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Sun, 09 Dec 2007 15:46:22 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1509#comment:7 https://svn.boost.org/trac10/ticket/1509#comment:7 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/41920" title="Merge fix to suppress a Visual C++ warning. Fixes #1509">[41920]</a>) Merge fix to suppress a Visual C++ warning. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1509" title="#1509: Bugs: [functional/hash] VC8.0 compiler warning (closed: fixed)">#1509</a> </p> Ticket