Boost C++ Libraries: Ticket #2747: inline warning https://svn.boost.org/trac10/ticket/2747 <pre class="wiki">farm6 1234338979.38 : cc1plus: warnings being treated as errors farm6 1234338979.38 : In file included from /u/yang/.local/armed/include/boost/thread/condition_variable.hpp:16, farm6 1234338979.38 : from /u/yang/.local/armed/include/boost/thread.hpp:14, farm6 1234338979.38 : from main.lzz:13, farm6 1234338979.38 : from main.cc:4: farm6 1234338979.38 : /u/yang/.local/armed/include/boost/thread/pthread/condition_variable.hpp:23: error: ‘bool boost::condition_variable::timed_wait(boost::unique_lock&lt;boost::mutex&gt;&amp;, const boost::system_time&amp;)’ was used before it was declared inline farm6 1234338979.38 : /u/yang/.local/armed/include/boost/thread/pthread/condition_variable_fwd.hpp:49: error: previous non-inline declaration here </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2747 Trac 1.4.3 Jonathan Wakely <jwakely.boost@…> Fri, 05 Jun 2009 17:24:32 GMT cc set https://svn.boost.org/trac10/ticket/2747#comment:1 https://svn.boost.org/trac10/ticket/2747#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">jwakely.boost@…</span> added </li> </ul> <p> what version of GCC are you uing? </p> Ticket anonymous Fri, 05 Jun 2009 18:27:05 GMT <link>https://svn.boost.org/trac10/ticket/2747#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2747#comment:2</guid> <description> <p> 4.3.3 </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Fri, 20 Nov 2009 12:11:48 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2747#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2747#comment:3</guid> <description> <p> In order to respect C++ conformance the inline declaration should be at the declaration, so we should have the following declarations in boost/thread/pthread/condition_variable_fwd.hpp </p> <pre class="wiki"> inline void wait(unique_lock&lt;mutex&gt;&amp; m); inline bool timed_wait(unique_lock&lt;mutex&gt;&amp; m,boost::system_time const&amp; wait_until); inline void notify_one(); inline void notify_all(); </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Tue, 08 Jun 2010 23:40:25 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/2747 https://svn.boost.org/trac10/ticket/2747 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">2747.patch</span> </li> </ul> <p> inline forward declaration </p> Ticket viboes Wed, 09 Jun 2010 00:17:31 GMT type changed https://svn.boost.org/trac10/ticket/2747#comment:4 https://svn.boost.org/trac10/ticket/2747#comment:4 <ul> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Patches</span> </li> </ul> Ticket Anthony Williams Wed, 09 Jun 2010 06:42:53 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2747#comment:5 https://svn.boost.org/trac10/ticket/2747#comment:5 <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> <p> The problem is due to the use of this overload of timed_wait in the xtime overload, which causes a gcc warning (it is not a conformance issue). </p> <p> Thanks for the patch. </p> <p> Fixed on trunk. </p> Ticket