[Y-devel] warning: inline function used but never defined
Kristian Mueller Kristian-M at Kristian-M.de
Mon Feb 13 21:46:44 GMT 2006
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 https://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
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved