Hello Andrey,

Friday, July 15, 2005, 16:37:24, Andrey Shorin wrote:

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

> And the patch should be as attached.

>> ../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);};

Please excuse me, would somebody commit a patch to squid 3 HEAD, or
correct me if I'm wrong...

-
Best regards,
 Andrey Shorin
Index: include/Array.h
===================================================================
RCS file: /cvsroot/squid/squid3/include/Array.h,v
retrieving revision 1.12
diff -u -3 -r1.12 Array.h
--- include/Array.h     10 Jun 2005 02:13:45 -0000      1.12
+++ include/Array.h     15 Jul 2005 12:34:17 -0000
@@ -92,7 +92,7 @@
     void clean();
     void reserve (size_t capacity);
     void push_back (E);
-    Vector &operator += (E item) {push_back(item);};
+    Vector &operator += (E item) {push_back(item); return *this;}
     void insert (E);
     E &back();
     E pop_back();

Reply via email to