Opened 12 years ago
Closed 12 years ago
#4316 closed Patches (fixed)
gcc 4.4 warning: get_id() redeclared without dllimport attribute: previous dllimport ignored
Reported by: | viboes | Owned by: | Anthony Williams |
---|---|---|---|
Milestone: | Boost 1.43.0 | Component: | thread |
Version: | Boost 1.44.0 | Severity: | Cosmetic |
Keywords: | Cc: |
Description
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();
?
Attachments (1)
Change History (3)
by , 12 years ago
Attachment: | 4316.patch added |
---|
comment:1 by , 12 years ago
Type: | Support Requests → Patches |
---|
comment:2 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed on trunk