Boost C++ Libraries: Ticket #5466: Warning from serialization.hpp https://svn.boost.org/trac10/ticket/5466 <p> #if defined(_MSC_VER) &amp;&amp; (_MSC_VER &gt;= 1310) # pragma warning (disable : 4675) <em> suppress ADL warning. # pragma warning(disable : 4100) </em> unreferenced formal parameter. #endif </p> <p> To suppress ugly warnings on MSVC, I'd like to add </p> <p> # pragma warning(disable : 4100) <em> unreferenced formal parameter. </em></p> <p> as above. </p> <p> Thanks. </p> <p> OK to commit to trunk? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5466 Trac 1.4.3 anonymous Thu, 14 Apr 2011 04:01:07 GMT <link>https://svn.boost.org/trac10/ticket/5466#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5466#comment:1</guid> <description> <p> Not a good idea. </p> <p> Better would be to tweak the code so the warning doesn't appear. ie chane </p> <p> void f(int x){ } </p> <p> to </p> <p> void f(int /*x*/){ } </p> <p> Robert Ramey </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Paul A. Bristow</dc:creator> <pubDate>Thu, 14 Apr 2011 08:47:19 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5466#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5466#comment:2</guid> <description> <p> Yes indeed it might be better, but I wouldn't presume to touch your code! </p> <p> MS are unreasonable to moan about this - your code is quite correct. </p> <p> And it may be tricky to find all the places which may trigger this warning. </p> <p> But either way, many may be grateful not to have pages of warnings. </p> <p> Tell me if there is anything I can do to help. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Fri, 22 Apr 2011 18:17:26 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5466#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5466#comment:3</guid> <description> <p> Hmmm - Build with MSVC level 4 and I get very few if any warnings. </p> <p> When does this occur? When you build the library? or when you build a user program which uses the library. I invested a lot of effort to get the code as warning free as possible so I'm curious about this. </p> <p> Send me your error listing for this. </p> <p> Robert Ramey </p> <p> PS. There is an easy fix for your own system. Use the IDE to include a command line switch to supress this specific warning. </p> <p> RR. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sun, 24 Apr 2011 22:59:20 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5466#comment:4 https://svn.boost.org/trac10/ticket/5466#comment:4 <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">wontfix</span> </li> </ul> Ticket