Boost C++ Libraries: Ticket #11770: thread/detail/invoker.hpp: missing return statement at end of non-void function operator=() https://svn.boost.org/trac10/ticket/11770 <p> I'm using the latest Intel compiler with the flags </p> <ul><li>-std=c++11 </li><li>-Wall </li><li>-early-template-check </li></ul><p> Compiling any code including &lt;boost/thread.hpp&gt; results in the following warning: </p> <pre class="wiki"> In file included from /boost/thread/future.hpp(20), from /boost/thread.hpp(24), from thread.cc(1): /boost/thread/detail/invoker.hpp(76): warning #1011: missing return statement at end of non-void function "boost::detail::invoker&lt;Fp, Args...&gt;::operator=(boost::detail::invoker&lt;Fp, Args...&gt; &amp;&amp;)" } ^ </pre><p> I am not familiar with the particular purpose of this class, but might a simple </p> <pre class="wiki">return *this; </pre><p> help? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11770 Trac 1.4.3 viboes Wed, 28 Oct 2015 22:11:40 GMT owner, status changed https://svn.boost.org/trac10/ticket/11770#comment:1 https://svn.boost.org/trac10/ticket/11770#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket viboes Thu, 29 Oct 2015 10:32:06 GMT milestone changed https://svn.boost.org/trac10/ticket/11770#comment:2 https://svn.boost.org/trac10/ticket/11770#comment:2 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.60.0</span> </li> </ul> <p> <a class="ext-link" href="https://github.com/boostorg/thread/commit/c0317c5206fc377369855f8a56cddc1955d3f71c"><span class="icon">​</span>https://github.com/boostorg/thread/commit/c0317c5206fc377369855f8a56cddc1955d3f71c</a> </p> Ticket viboes Thu, 29 Oct 2015 10:32:29 GMT <link>https://svn.boost.org/trac10/ticket/11770#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11770#comment:3</guid> <description> <p> Thanks for catching this. </p> </description> <category>Ticket</category> </item> <item> <author>Jan Gampe <mail@…></author> <pubDate>Thu, 29 Oct 2015 11:24:53 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11770#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11770#comment:4</guid> <description> <p> This removes the warning for me, thank you! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 14 Nov 2015 23:49:29 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11770#comment:5 https://svn.boost.org/trac10/ticket/11770#comment:5 <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> Ticket