gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/libbase container.h


From: Markus Gothe
Subject: [Gnash-commit] gnash/libbase container.h
Date: Fri, 29 Sep 2006 13:43:10 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Markus Gothe <nihilus>  06/09/29 13:43:10

Modified files:
        libbase        : container.h 

Log message:
        fix for returning on the non-void... MIPSPRO complains without this.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/container.h?cvsroot=gnash&r1=1.41&r2=1.42

Patches:
Index: container.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/container.h,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -b -r1.41 -r1.42
--- container.h 29 Sep 2006 11:42:57 -0000      1.41
+++ container.h 29 Sep 2006 13:43:10 -0000      1.42
@@ -165,7 +165,9 @@
                        return E(index).second;
                }
                assert(0);
-               return NULL; //non-void function!       
+               return E(index).second; /* Doesn't look nice but removes
+                                          warning on non-void function not
+                                          returning. */        
        }
 
        void    set(const T& key, const U& value)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]