This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12477] New: Request to add ability to disable inline/dllimport warnings
- From: "jwillemsen at remedy dot nl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Oct 2003 12:38:07 -0000
- Subject: [Bug c++/12477] New: Request to add ability to disable inline/dllimport warnings
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12477
Summary: Request to add ability to disable inline/dllimport
warnings
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jwillemsen at remedy dot nl
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: x86-cygwin
GCC target triplet: x66-cygwin
I am working on ACE/TAO (www.cs.wustl.edu/~schmidt). With the upgrade to
cygwin GCC 3.3.1 we get a lot of warnings that we use inline with dllimport
and that attribute is ignored. Can an option be added to disable just this
warning. I know I can disable all, but I want to keep the others. We have one
codebase in which inlining can be disable by setting inline=0 in gnu make and
I don't think we get all warnings gone because of the large number of
combinations.
D:/ACE/Cygwin/ACE_wrappers/ace/Bound_Ptr.i: In member function `
ACE_Bound_Ptr_Counter<ACE_LOCK>::~ACE_Bound_Ptr_Counter() [with ACE_LOCK =
ACE_Null_Mutex]':
D:/ACE/Cygwin/ACE_wrappers/ace/Bound_Ptr.i:121: instantiated from `static void
ACE_Bound_Ptr_Counter<ACE_LOCK>::detach_weak(ACE_Bound_Ptr_Counter<ACE_LOCK>*)
[with ACE_LOCK = ACE_Null_Mutex]'
D:/ACE/Cygwin/ACE_wrappers/ace/Bound_Ptr.i:337: instantiated from
`ACE_Weak_Bound_Ptr<X, ACE_LOCK>::~ACE_Weak_Bound_Ptr() [with X = Parent,
ACE_LOCK = ACE_Null_Mutex]'
Bound_Ptr_Test.cpp:86: instantiated from here
D:/ACE/Cygwin/ACE_wrappers/ace/Null_Mutex.h:41: warning: inline function '
ACE_Null_Mutex::~ACE_Null_Mutex()' is declared as dllimport: attribute
ignored.