warning: inline function used but never defined

Kristian Mueller <[email protected]> Tue, 14 Feb 2006 05:46:44 +0800
Newsgroups gmane.comp.graphics.y.devel
Message-ID <1139867205.3494.50.camel@pismo>
Hi 

FYI

Compiling libYc++ with gcc 4.0.3 20060104 I get the following warning:

cc1plus: warnings being treated as errors
./Y/c++/message.h:45: warning: inline function
'Y::Message::Member::~Member()' used but never defined
./Y/c++/message.h:45: warning: inline function 'Y::Message::Member&
Y::Message::Member::operator=(const Y::Message::Member&)' used but never
defined
./Y/c++/message.h:45: warning: inline function
'Y::Message::Member::Member(const Y::Message::Member&)' used but never
defined


I could fix this warning in previous cases by just declaring empty
constructors and destructors but the = operator here scares me... ;)

As http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20584 states this is a
gcc problem.

Disable the -Werror option in /libYc++/Makefile to handle it like a
warning.


Greetings from Shanghai
Kristian