From be12bce74a98e0d86ad6801578cad5ba0529bed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 6 Nov 2009 08:46:42 +0000 Subject: [PATCH] * Fixed GCC2 build, and a warning that should have fired in GCC4 as well. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33912 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../debugger/user_interface/gui/team_window/VariablesView.cpp | 2 +- src/apps/debugger/value/value_nodes/CompoundValueNode.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp b/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp index cc032b9f5c..9f0bbd01e9 100644 --- a/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp +++ b/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp @@ -469,7 +469,7 @@ public: bool FinishMenu(bool force) { - bool stillActive; + bool stillActive = false; if (fMenuPreparedToShow) { stillActive = fRendererSettingsMenu->Finish(fParentLooper, force); diff --git a/src/apps/debugger/value/value_nodes/CompoundValueNode.h b/src/apps/debugger/value/value_nodes/CompoundValueNode.h index 3c556e4611..891a07a22e 100644 --- a/src/apps/debugger/value/value_nodes/CompoundValueNode.h +++ b/src/apps/debugger/value/value_nodes/CompoundValueNode.h @@ -38,6 +38,10 @@ private: class BaseTypeChild; class MemberChild; + // for GCC2 + friend class BaseTypeChild; + friend class MemberChild; + typedef BObjectList ChildList; private: