[Boost-bugs] [Boost C++ Libraries] #4316: gcc 4.4 warning: get_id() redeclared without dllimport attribute: previous dllimport ignored

Subject: [Boost-bugs] [Boost C++ Libraries] #4316: gcc 4.4 warning: get_id() redeclared without dllimport attribute: previous dllimport ignored
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-06-08 23:30:39


#4316: gcc 4.4 warning: get_id() redeclared without dllimport attribute: previous
dllimport ignored
------------------------------+---------------------------------------------
 Reporter: viboes | Owner: anthonyw
     Type: Support Requests | Status: new
Milestone: Boost 1.43.0 | Component: thread
  Version: Boost 1.44.0 | Severity: Cosmetic
 Keywords: |
------------------------------+---------------------------------------------
 The following warning appears on gcc4.4 mingw:

 gcc.compile.c++ ..\..\..\bin.v2\libs\thread\test\test_thread_id.test\gcc-
 mingw-4.4.0\debug\threading-multi\test_thread_id.o
 In file included from ..\..\../boost/thread/thread.hpp:22,
                  from test_thread_id.cpp:5:
 ..\..\../boost/thread/detail/thread.hpp:399: warning: 'boost::thread::id
 boost::this_thread::get_id()' redeclared without dllimport attribute:
 previous dllimport ignored

 Given the declaration
         thread::id BOOST_THREAD_DECL get_id();

 Shouldn't the friend declaration be declared as
         friend id BOOST_THREAD_DECL this_thread::get_id();
 ?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4316>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:03 UTC