Modify

Opened 7 years ago

Closed 7 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)

4316.patch (411 bytes) - added by viboes 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by viboes

Attachment: 4316.patch added

comment:1 Changed 7 years ago by viboes

Type: Support RequestsPatches

comment:2 Changed 7 years ago by Anthony Williams

Resolution: fixed
Status: newclosed

Fixed on trunk

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Anthony Williams.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.