Boost C++ Libraries: Ticket #11239: clang++ emits lots of warnings about unused local defines https://svn.boost.org/trac10/ticket/11239 <p> When compiling anything using <code>BOOST_RANGE_CONCEPT_ASSERT()</code> cland++ emits tons of warnings about used local defines with <code>-Wall</code>. </p> <p> This is a regression compared to 1.57.0. </p> <p> Trivial example program: </p> <pre class="wiki">#include &lt;vector&gt; #include &lt;boost/range/algorithm.hpp&gt; int main(int, char**) { std::vector&lt;int&gt; v; boost::range::sort(v); } </pre><p> Compiled with: </p> <pre class="wiki">clang++ -Wall -I$HOME/opt/boost/boost_1_58_0/include/ \ -L$HOME/opt/boost/boost_1_58_0/lib/ -o cpp1 cpp1.cpp </pre><p> Output (excerpt): </p> <pre class="wiki">In file included from cpp1.cpp:46: In file included from /home/mosu/opt/boost/boost_1_58_0/include/boost/range/algorithm.hpp:29: In file included from /home/mosu/opt/boost/boost_1_58_0/include/boost/range/concepts.hpp:19: /home/mosu/opt/boost/boost_1_58_0/include/boost/concept_check.hpp:51:7: warning: unused typedef 'boost_concept_check51' [-Wunused-local-typedef] BOOST_CONCEPT_ASSERT((Model)); … 313 warnings generated. </pre><p> These are 313 warnings for that trivial example program above. </p> <p> g++ 4.9.2 does not emit such warnings, with neither version. </p> <p> clang++ 3.6.0 emits those warnings with Boost 1.58.0 but not with 1.57.0 or earlier. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11239 Trac 1.4.3 Moritz Bunkus <moritz@…> Fri, 24 Apr 2015 20:39:33 GMT <link>https://svn.boost.org/trac10/ticket/11239#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11239#comment:1</guid> <description> <p> I'm sorry to have opened two tickets (this one and <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/11240" title="#11240: Bugs: tons of warnings about unused local typedefs with clang++ (reopened)">#11240</a>). The server takes way too long after clicking on »submit«, therefore I went back, changed »defines« to »typedefs« and re-submitted. Hence two bugs. Feel free to close one of them, preferably this one as the wording in <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/11240" title="#11240: Bugs: tons of warnings about unused local typedefs with clang++ (reopened)">#11240</a> is better. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Tue, 28 Apr 2015 14:55:39 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11239#comment:2 https://svn.boost.org/trac10/ticket/11239#comment:2 <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">duplicate</span> </li> </ul> Ticket