Boost C++ Libraries: Ticket #7220: gcc 4.6.2 warns about inline+dllimport functions https://svn.boost.org/trac10/ticket/7220 <p> In boost/thread/future.hpp, the functions make_error_code() and make_error_condition() are declared as "inline BOOST_THREAD_DECL". In MinGW GCC 4.6.2, this results in the functions declared as both inline and as dllimport, which causes GCC to emit warnings. This bug is similar to ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4315" title="#4315: Patches: gcc 4.4 Warning: inline ... declared as dllimport: attribute ignored (closed: fixed)">#4315</a>. </p> <p> Test program: </p> <pre class="wiki">#include &lt;boost/thread.hpp&gt; int main() { return 0; } </pre><p> Compiled via: </p> <p> g++ -o test.exe test.cpp -IC:/boost/include/boost-1_50 -LC:/boost/lib -lboost_thread-mgw46-mt-1_50 -lboost_system-mg w46-mt-1_50 </p> <p> Warnings: </p> <p> In file included from C:/boost/include/boost-1_50/boost/thread.hpp:24:0, </p> <blockquote> <p> from test.cpp:1: </p> </blockquote> <p> C:/boost/include/boost-1_50/boost/thread/future.hpp:103:5: warning: inline function 'boost::system::error_code boost::system::make_error_code(boost::future_errc)' declared as dllimport: attribute ignored [-Wattributes]<br /> C:/boost/include/boost-1_50/boost/thread/future.hpp:112:5: warning: inline function 'boost::system::error_condition boost::system::make_error_condition(boost::future_errc)' declared as dllimport: attribute ignored [-Wattributes] </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7220 Trac 1.4.3 viboes Sun, 12 Aug 2012 19:30:39 GMT owner, status changed https://svn.boost.org/trac10/ticket/7220#comment:1 https://svn.boost.org/trac10/ticket/7220#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 Wed, 15 Aug 2012 10:00:23 GMT milestone changed https://svn.boost.org/trac10/ticket/7220#comment:2 https://svn.boost.org/trac10/ticket/7220#comment:2 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.52.0</span> </li> </ul> <p> Committed in trunk revision 80041. </p> Ticket viboes Sun, 09 Sep 2012 13:27:45 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7220#comment:3 https://svn.boost.org/trac10/ticket/7220#comment:3 <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> Merged to release <a class="changeset" href="https://svn.boost.org/trac10/changeset/80450" title="Thread: merge from trunk: 1.52">[80450]</a> </p> Ticket