[haiku-commits] r33912 - in haiku/trunk/src/apps/debugger: user_interface/gui/team_window value/value_nodes

  • From: axeld@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 6 Nov 2009 09:46:42 +0100 (CET)

Author: axeld
Date: 2009-11-06 09:46:42 +0100 (Fri, 06 Nov 2009)
New Revision: 33912
Changeset: http://dev.haiku-os.org/changeset/33912/haiku

Modified:
   
haiku/trunk/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp
   haiku/trunk/src/apps/debugger/value/value_nodes/CompoundValueNode.h
Log:
* Fixed GCC2 build, and a warning that should have fired in GCC4 as well.


Modified: 
haiku/trunk/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp
===================================================================
--- 
haiku/trunk/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp  
    2009-11-06 00:28:44 UTC (rev 33911)
+++ 
haiku/trunk/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp  
    2009-11-06 08:46:42 UTC (rev 33912)
@@ -469,7 +469,7 @@
 
        bool FinishMenu(bool force)
        {
-               bool stillActive;
+               bool stillActive = false;
 
                if (fMenuPreparedToShow) {
                        stillActive = 
fRendererSettingsMenu->Finish(fParentLooper, force);

Modified: haiku/trunk/src/apps/debugger/value/value_nodes/CompoundValueNode.h
===================================================================
--- haiku/trunk/src/apps/debugger/value/value_nodes/CompoundValueNode.h 
2009-11-06 00:28:44 UTC (rev 33911)
+++ haiku/trunk/src/apps/debugger/value/value_nodes/CompoundValueNode.h 
2009-11-06 08:46:42 UTC (rev 33912)
@@ -38,6 +38,10 @@
                        class BaseTypeChild;
                        class MemberChild;
 
+                       // for GCC2
+                       friend class BaseTypeChild;
+                       friend class MemberChild;
+
                        typedef BObjectList<Child> ChildList;
 
 private:


Other related posts: