Hi Andreas,
On Fri, Apr 01, 2005 at 09:32:33PM +0200, Andreas Jochens wrote:
> When building 'ipe' on amd64/unstable with gcc-4.0,
> I get the following error:
>
> g++ -c -pipe -Wall -W -Werror -O2 -D_REENTRANT -fPIC -DIPE_MAKEDLL
> -I/usr/share/qt3/mkspecs/default -I. -I../include -o
> ../../build/obj/ipelib/ipebase.o ipebase.cpp
> cc1plus: warnings being treated as errors
> ../include/ipelet.h:59: warning: 'class IpeletHelper' has virtual functions
> but non-virtual destructor
> make[2]: *** [../../build/obj/ipelib/ipebase.o] Error 1
> make[2]: Leaving directory `/ipe-6.0pre23/src/ipelib'
This error should be fixed with a simple patch:
Index: src/include/ipelet.h
===================================================================
RCS file: /home/steve/lib/cvs/debian/ipe/src/include/ipelet.h,v
retrieving revision 1.1.1.2
diff -u -b -B -r1.1.1.2 ipelet.h
--- src/include/ipelet.h 5 Jun 2004 08:53:02 -0000 1.1.1.2
+++ src/include/ipelet.h 3 Apr 2005 21:40:17 -0000
@@ -58,6 +58,7 @@
class IPE_EXPORT IpeletHelper {
public:
+ virtual ~IpeletHelper() {}
//! Show a message in the status bar.
virtual void Message(const char *msg) = 0;
/*! Pop up a modal message box with the \a text, and up to three
> There are a lot more of those warnings. Some of those warnings refer to
> include file from /usr/include/, i.e. from outside the package.
Yeah, I get many "control may reach end of non-void function" warnings
for standard library functions. I believe that this must be a GCC bug;
see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=302989
I'm reluctant to remove the -Werror flag as per your patch. I'm
going to add the virtual destructor as per my patch above, and hope
that bug #302989 will get fixed.
-Steve
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]