From c5bf0b0199dc190ab6a7994b36d2ec3e3e0a6eac Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Thu, 8 May 2014 22:32:14 +0300 Subject: [PATCH] CppParser: fix compilation warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the following warnings: ../../../src/CppParser/CppParser.cpp: In destructor ‘CppSharp::CppParser::ParserResult::~ParserResul t()’: ../../../src/CppParser/CppParser.cpp:49:12: warning: possible problem detected in invocation of dele te operator: [enabled by default] delete Parser; ^ ../../../src/CppParser/CppParser.cpp:49:12: warning: invalid use of incomplete type ‘struct CppSharp::CppParser::Parser’ [enabled by default] In file included from ../../../src/CppParser/CppParser.cpp:8:0: ../../../src/CppParser/CppParser.h:73:8: warning: forward declaration of ‘struct CppSharp::CppParser::Parser’ [enabled by default] struct Parser; ^ ../../../src/CppParser/CppParser.cpp:49:12: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined delete Parser; ^ Signed-off-by: Tomi Valkeinen --- src/CppParser/CppParser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CppParser/CppParser.cpp b/src/CppParser/CppParser.cpp index 91008bfe..68038973 100644 --- a/src/CppParser/CppParser.cpp +++ b/src/CppParser/CppParser.cpp @@ -6,6 +6,7 @@ ************************************************************************/ #include "CppParser.h" +#include "Parser.h" namespace CppSharp { namespace CppParser {