Boost C++ Libraries: Ticket #3618: MSVC Warning suppression fix https://svn.boost.org/trac10/ticket/3618 <p> The attached patch fixes two categories of warnings from MSVC: </p> <ul><li>First it complains that certain variables are assigned values that are not used when in fact it is used to call the type's destructor via f-&gt;~Function(). I believe the warning occurs because the type Function is a built in type for which it's destructor is a no-op. </li><li>Secondly, use of Boost.Test requires /EHa - added as a requirement to the Jamfile. </li></ul><p> Let me know if you want me to commit. </p> <p> Regards, John. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3618 Trac 1.4.3 anonymous Sun, 15 Nov 2009 05:09:52 GMT <link>https://svn.boost.org/trac10/ticket/3618#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3618#comment:1</guid> <description> <blockquote> <p> "(void)f; <em> suppress waring about the value of f not being used (MSVC) " </em></p> </blockquote> <p> ---&gt; suppress war<strong>n</strong>ing </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Fri, 27 Nov 2009 12:27:41 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/3618 https://svn.boost.org/trac10/ticket/3618 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">warnings.diff</span> </li> </ul> Ticket John Maddock Fri, 27 Nov 2009 12:28:27 GMT <link>https://svn.boost.org/trac10/ticket/3618#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3618#comment:2</guid> <description> <p> Fixed typo in patch. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Jeremiah Willcock</dc:creator> <pubDate>Wed, 09 Jun 2010 00:47:55 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3618#comment:3 https://svn.boost.org/trac10/ticket/3618#comment:3 <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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/62621" title="Applied patch from #3618; fixes #3618">[62621]</a>) Applied patch from <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3618" title="#3618: Patches: MSVC Warning suppression fix (closed: fixed)">#3618</a>; fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3618" title="#3618: Patches: MSVC Warning suppression fix (closed: fixed)">#3618</a> </p> Ticket Daniel James Mon, 21 Mar 2011 21:32:44 GMT <link>https://svn.boost.org/trac10/ticket/3618#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3618#comment:4</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/70361" title="Function: Merge from trunk. - Remove extra definition of operator(), ...">[70361]</a>) Function: Merge from trunk. </p> <ul><li>Remove extra definition of operator(), since it's inline anyway. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4765" title="#4765: Bugs: function_template.hpp incorrect placement of inline keyword (closed: fixed)">#4765</a>. </li><li>Make sure that the cv flags are copied when we copy a reference to a function object. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4325" title="#4325: Bugs: boost::function target method fails after copy constructing a function ... (closed: fixed)">#4325</a> </li><li>Fully qualified function calls to avoid ambiguity with new additions to standard. Thanks to Conrad Poelman. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4073" title="#4073: Bugs: &lt;boost/function/function_template.hpp&gt; compile errors with Visual ... (closed: fixed)">#4073</a> </li><li>Remove iterator workaround for newer versions of Visual Age C++. Thanks to 'ccambly'. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3912" title="#3912: Bugs: Boost.Function function30 with vacpp on AIX (closed: fixed)">#3912</a> </li><li>Fix unused variable warning for Visual C++. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3618" title="#3618: Patches: MSVC Warning suppression fix (closed: fixed)">#3618</a> </li><li>Testing flag for Visual C++. </li><li>Removed all but one old-style cast, prevents GCC warnings, but breaks GCC 2.95.3. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3410" title="#3410: Bugs: Warnings in Boost::function when compiled with &#34;-Wold-style-cast&#34; (closed: fixed)">#3410</a> </li><li>Fixed tab and newline issues from inspection report. </li></ul> </description> <category>Ticket</category> </item> </channel> </rss>