Boost C++ Libraries: Ticket #1875: Boost.Iostreams warnings with GCC -Wall -W -std=c++98 -pedantic https://svn.boost.org/trac10/ticket/1875 <p> I'm using Boost.Iostreams on Mac OS X 10.4 with GCC 4.0.1 and the highest Warninglevel -Wall -W -std=c++98. GCC reports warnings for the Iostreams Headers. Even if those aren't real bugs. They should be fixed since every sane programer usually wants to compile without warnings! </p> <pre class="wiki">boost-1_35/boost/iostreams/chain.hpp:416: warning: base class 'class boost::iostreams::detail::chain_base&lt;boost::iostreams::chain&lt;boost::iostreams::input, char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt;, boost::iostreams::input&gt;' should be explicitly initialized in the copy constructor </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1875 Trac 1.4.3 anonymous Mon, 28 Apr 2008 18:07:05 GMT <link>https://svn.boost.org/trac10/ticket/1875#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1875#comment:1</guid> <description> <pre class="wiki">boost/iostreams/read.hpp:82: warning: unused parameter ‘t’ </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 28 Apr 2008 18:09:53 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1875#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1875#comment:2</guid> <description> <pre class="wiki">boost/iostreams/filter/gzip.hpp:135: warning: unused parameter ‘comment’ </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Jonathan Turkanis</dc:creator> <pubDate>Mon, 26 May 2008 18:48:17 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/1875#comment:3 https://svn.boost.org/trac10/ticket/1875#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> I can't reproduce any of the warnings, but I've made a change to chain.hpp that I hope will fix the first warning. (See <a class="changeset" href="https://svn.boost.org/trac10/changeset/45781" title="fixes (I hope) the first warning in #1875">[45781]</a>). Please check to see that the problem is fixed. I'm not sure why the code was written the way it was -- possibly it was to make the library work with VC6.0 or an old version of Borland. </p> <p> As for the two unused parameter warnings, I take these seriously, but I can't find the unused 't' in the first warnings, and the parameter 'comment' from the second warning does appear to be used. What version of Boost are you using (I know the ticket says 1.35.0, but that seems to be the default value)? </p> Ticket Jonathan Turkanis Mon, 02 Jun 2008 16:35:34 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1875#comment:4 https://svn.boost.org/trac10/ticket/1875#comment:4 <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> I'm going to close this, since the first warning is pretty clear, even though I can't reproduce it, and the change to chain.hpp addresses it directly. I believe I have fixed all the unreferenced parameter warnings in response to other tickets. </p> Ticket