Hello Squid,
[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);};
And the compiler installed with OS is:
[tolsty@rhel3 squid3-anon]$ g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-47)
Strangely, I don't receive a warning on FreeBSD 5.4
tolsty:~/squid/squid3-anon$ g++ -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.2 [FreeBSD] 20040728
-- Best regards, Andrey ShorinReceived on Thu Jul 14 2005 - 15:01:43 MDT
This archive was generated by hypermail pre-2.1.9 : Mon Aug 01 2005 - 12:00:04 MDT