Boost C++ Libraries: Ticket #3196: compiler warnings in VC9 https://svn.boost.org/trac10/ticket/3196 <p> The following code in boost/concept/detail/msvc.hpp generates a warning stating that 'x' is an unreferenced formal parameter under VC9 at warning level 4 when failed() isn't invoked. Since this already appears to be an msvc-specific file, can it's contents be wrapped in a #pragma warning( disable : 4100 ) to suppress the warning? </p> <p> template &lt;class Model&gt; struct check { </p> <blockquote> <p> virtual void failed(Model* x) { </p> <blockquote> <p> x-&gt;~Model(); </p> </blockquote> <p> } </p> </blockquote> <p> }; </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3196 Trac 1.4.3 Akira Takahashi(faithandbrave@… Fri, 10 Jun 2011 08:17:05 GMT <link>https://svn.boost.org/trac10/ticket/3196#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3196#comment:1</guid> <description> <p> additional information: </p> <p> this problem happened invoke trivial destructor(VC9, VC10). I think VC's bug. I reported to Microsoft Connect Japanese: <a class="ext-link" href="https://connect.microsoft.com/VisualStudioJapan/feedback/details/674908/"><span class="icon">​</span>https://connect.microsoft.com/VisualStudioJapan/feedback/details/674908/</a> </p> </description> <category>Ticket</category> </item> <item> <author>Akira Takahashi(faithandbrave@…</author> <pubDate>Fri, 10 Jun 2011 08:26:33 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3196#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3196#comment:2</guid> <description> <p> additional information: </p> <p> this problem happened invoke trivial destructor(VC9, VC10). I think VC's bug. I reported to Microsoft Connect Japanese: <a class="ext-link" href="https://connect.microsoft.com/VisualStudioJapan/feedback/details/674908/"><span class="icon">​</span>feedback674908</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>