Re: Squid 3 build problem on RedHat Enterprise Linux 3 update 4

From: Andrey Shorin <tolsty@dont-contact.us>
Date: Fri, 15 Jul 2005 16:37:24 +0400

Hello Andrey,

Friday, July 15, 2005, 1:01:34, Andrey Shorin wrote:

And the patch should be as attached.

> [tolsty@rhel3 squid3-anon]$ make
> ...
> if g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include
> -I../include -I../lib/cppunit-1.10.0/include -I
> ../lib/cppunit-1.10.0/include -Werror -Wall -Wpointer-arith
> -Wwrite-strings -Wcomments -D_REENTRANT -g -O2 -MT MemPool.o -MD
> -MP -MF ".deps/MemPool.Tpo" -c -o MemPool.o MemPool.cc; \
> then mv -f ".deps/MemPool.Tpo" ".deps/MemPool.Po"; else rm -f ".deps/MemPool.Tpo"; exit 1; fi
> cc1plus: warnings being treated as errors
> In file included from ../include/Stack.h:37,
> from ../include/splay.h:11,
> from ../include/MemPool.h:9,
> from MemPool.cc:87:
> ../include/Array.h: In member function `Vector<E>& Vector<E>::operator+=(E)':
> ../include/Array.h:95: warning: no return statement in function returning
> non-void
> make[2]: *** [MemPool.o] Error 1
> make[2]: Leaving directory `/home/tolsty/squid/squid3-anon/lib'

> Line 95 is:
> Vector &operator += (E item) {push_back(item);};

-- 
Best regards,
 Andrey Shorin

Received on Fri Jul 15 2005 - 06:37:30 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Aug 01 2005 - 12:00:04 MDT