Skip to content

Ghidra is a software reverse engineering (SRE) framework

Fix Forward Declarations for ActionPool and VarnodeData

Florian Märkl429bc9dad03d
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/action.hh b/Ghidra/Features/Decompiler/src/decompile/cpp/action.hh
index 14df7561dc..efc7a41d65 100644
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/action.hh
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/action.hh
@@ -199,7 +199,7 @@ public:
warnings_given = 8 ///< Set if a warning for this rule has been given before
};
private:
- friend struct ActionPool;
+ friend class ActionPool;
uint4 flags; ///< Properties enabled with \b this Rule
uint4 breakpoint; ///< Breakpoint(s) enabled for \b this Rule
string name; ///< Name of the Rule
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/space.hh b/Ghidra/Features/Decompiler/src/decompile/cpp/space.hh
index 4118d16313..0a303c078c 100644
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/space.hh
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/space.hh
@@ -37,7 +37,7 @@ enum spacetype {
class AddrSpace;
class AddrSpaceManager;
-class VarnodeData;
+struct VarnodeData;
class Translate;
/// \brief A region where processor data is stored