Boost C++ Libraries: Ticket #7972: [Coroutine] warning with GCC https://svn.boost.org/trac10/ticket/7972 <p> I am using GCC with -pedantic option. happen few warning. </p> <pre class="wiki">#include &lt;boost/coroutine/all.hpp&gt; #include &lt;boost/foreach.hpp&gt; typedef boost::coroutines::coroutine&lt;int()&gt; coroutine; void f(coroutine::caller_type&amp; caller) { caller(1); caller(2); caller(3); } int main() { coroutine coro(f); BOOST_FOREACH (int x, coro) { std::cout &lt;&lt; x &lt;&lt; std::endl; } } </pre><pre class="wiki">In file included from /Users/myuser/repository/GitHub/Boost/boost/coroutine/all.hpp:11:0, from main.cpp:1: /Users/myuser/repository/GitHub/Boost/boost/coroutine/coroutine.hpp:118:47: warning: extra ';' [-pedantic] /Users/myuser/repository/GitHub/Boost/boost/coroutine/coroutine.hpp:665:47: warning: extra ';' [-pedantic] faithandbrave:cpp myuser$ sh build.sh In file included from /Users/myuser/repository/GitHub/Boost/boost/coroutine/all.hpp:11:0, from main.cpp:1: /Users/myuser/repository/GitHub/Boost/boost/coroutine/coroutine.hpp:118:47: warning: extra ';' [-pedantic] /Users/myuser/repository/GitHub/Boost/boost/coroutine/coroutine.hpp:665:47: warning: extra ';' [-pedantic] faithandbrave:cpp myuser$ sh build.sh In file included from /Users/myuser/repository/GitHub/Boost/boost/coroutine/all.hpp:11:0, from main.cpp:2: /Users/myuser/repository/GitHub/Boost/boost/coroutine/coroutine.hpp:118:47: warning: extra ';' [-pedantic] /Users/myuser/repository/GitHub/Boost/boost/coroutine/coroutine.hpp:665:47: warning: extra ';' [-pedantic] /Users/myuser/repository/GitHub/Boost/boost/coroutine/coroutine.hpp: In instantiation of 'typename boost::coroutines::coroutine&lt;Signature&gt;::iterator boost::coroutines::range_end(boost::coroutines::coroutine&lt;Signature&gt;&amp;) [with Signature = int(); typename boost::coroutines::coroutine&lt;Signature&gt;::iterator = boost::coroutines::detail::coroutine_op&lt;int(), boost::coroutines::coroutine&lt;int()&gt;, int, 0&gt;::iterator]': /Users/myuser/repository/GitHub/Boost/boost/range/end.hpp:102:25: required from 'typename boost::range_iterator&lt;C&gt;::type boost::range_adl_barrier::end(T&amp;) [with T = boost::coroutines::coroutine&lt;int()&gt;; typename boost::range_iterator&lt;C&gt;::type = boost::coroutines::detail::coroutine_op&lt;int(), boost::coroutines::coroutine&lt;int()&gt;, int, 0&gt;::iterator]' /Users/myuser/repository/GitHub/Boost/boost/foreach.hpp:714:102: required from 'boost::foreach_detail_::auto_any&lt;typename boost::foreach_detail_::foreach_iterator&lt;T, C&gt;::type&gt; boost::foreach_detail_::end(boost::foreach_detail_::auto_any_t, boost::foreach_detail_::type2type&lt;T, C&gt;*, mpl_::false_*) [with T = boost::coroutines::coroutine&lt;int()&gt;; C = mpl_::bool_&lt;false&gt;; typename boost::foreach_detail_::foreach_iterator&lt;T, C&gt;::type = boost::coroutines::detail::coroutine_op&lt;int(), boost::coroutines::coroutine&lt;int()&gt;, int, 0&gt;::iterator; boost::foreach_detail_::auto_any_t = const boost::foreach_detail_::auto_any_base&amp;; mpl_::false_ = mpl_::bool_&lt;false&gt;]' main.cpp:18:5: required from here /Users/myuser/repository/GitHub/Boost/boost/coroutine/coroutine.hpp:1380:1: warning: unused parameter 'c' [-Wunused-parameter] </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7972 Trac 1.4.3 olli Mon, 04 Feb 2013 07:22:27 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7972#comment:1 https://svn.boost.org/trac10/ticket/7972#comment:1 <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> Ticket