Modify

Ticket #4316 (closed Patches: fixed)

Opened 4 years ago

Last modified 4 years ago

gcc 4.4 warning: get_id() redeclared without dllimport attribute: previous dllimport ignored

Reported by: viboes Owned by: anthonyw
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

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

Change History

Changed 4 years ago by viboes

comment:1 Changed 4 years ago by viboes

  • Type changed from Support Requests to Patches

comment:2 Changed 4 years ago by anthonyw

  • Status changed from new to closed
  • Resolution set to fixed

Fixed on trunk

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.